Code review of the file /components/com_content/views/form/view.html.php, lines 49 — 77.
if (!empty($this->item->id))
if (!empty($this->item) && isset($this->item->id))
Joomla 3.7.2
The check !empty($this->item)
is unneeded or must be above. E.g., this check is absent at the line 53.
I think, it is possible to join the statements of if conditions at the lines 72 and 77.
Labels |
Added:
?
|
Category | ⇒ | Feature Request SQL |
Bakual
I have some trouble with this now.
I can try to help if you tell me what the trouble is
I use online github. My fork is inconsistent. I can't create second fork and I don't want to drop my fork.
If you edit the file on this repo instead of your fork, then GitHub will automatically create a new branch in your fork based on this repo here.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-06-01 08:27:53 |
Closed_By | ⇒ | nvyush |
Since you already propose some code, can you please create a Pull Request so it can be tested?
https://docs.joomla.org/Using_the_Github_UI_to_Make_Pull_Requests