?
Referenced as Pull Request for: # 9277
avatar m4ucoder
m4ucoder
29 Feb 2016

Steps to reproduce the issue

Enable all errors reporting in php.
Add "exit()" to the end of the onContentAfterSave() method (this is for watching the error)
In the front-end, add a menu item "propose an article".
In the front-end do log as an user which can add article.
When the article is submitted, the following error is displayed:
Notice: Undefined variable: result in /home/plambotte/Public/projets/web/joomla3dev/component-factory/plugins/content/joomla/joomla.php on line 93

Expected result

No "notice" error

Actual result

Notice: Undefined variable: result in /home/plambotte/Public/projets/web/joomla3dev/component-factory/plugins/content/joomla/joomla.php on line 93

Proposed bug resolution:

Solution #1: Adding a default value for $result on the beginning of the method
Or solution #2: Add a default value for $result before the foreach (line#75)
$result = true;

System information (as much as possible)

Additional comments

avatar m4ucoder m4ucoder - open - 29 Feb 2016
avatar brianteeman brianteeman - change - 2 Mar 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-03-02 23:54:47
Closed_By brianteeman
avatar brianteeman
brianteeman - comment - 2 Mar 2016

Closing as we hve a PR for testing #9277


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9253.

avatar brianteeman brianteeman - close - 2 Mar 2016
avatar brianteeman brianteeman - close - 2 Mar 2016

Add a Comment

Login with GitHub to post a comment