-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[com_content] /components/com_content/views/form/view.html.php contains unneeded check #16409
Comments
Since you already propose some code, can you please create a Pull Request so it can be tested? |
Bakual |
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. |
Closed as we have PR #16412. |
Steps to reproduce the issue
Code review of the file /components/com_content/views/form/view.html.php, lines 49 — 77.
Expected result
if (!empty($this->item->id))
Actual result
if (!empty($this->item) && isset($this->item->id))
System information (as much as possible)
Joomla 3.7.2
Additional comments
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.
The text was updated successfully, but these errors were encountered: