?
Referenced as Related to: # 4428
avatar yireo
yireo
2 Oct 2014

Steps to reproduce the issue

  • Enable PHP error reporting in your webserver
  • Create an empty Joomla category with no articles
  • Access this Joomla category URL in your browser - it should display no articles
  • Append ?format=feed&type=rss to this URL

Expected result

This should not generate any PHP warning.

Actual result

This should generate a PHP warning in either your browser or in your PHP error_log. The problem is that the PHP code loops through a $this->items array without checking whether this array is actually empty or not.

Additional comments

GitHub pull request will come right after submitting the issue. The pull request will simply add a if-check around the foreach-loop to prevent the PHP warning.

avatar yireo yireo - open - 2 Oct 2014
avatar yireo
yireo - comment - 2 Oct 2014

Pull request submitted #4428

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

avatar nicksavov nicksavov - change - 16 Oct 2014
Labels Added: ?
avatar jissues-bot
jissues-bot - comment - 17 Oct 2014
avatar jissues-bot jissues-bot - close - 17 Oct 2014
avatar zero-24 zero-24 - close - 17 Oct 2014
avatar zero-24 zero-24 - close - 17 Oct 2014
avatar brianteeman brianteeman - change - 17 Oct 2014
Status New Closed
avatar brianteeman
brianteeman - comment - 17 Oct 2014

Closed in favour of #4428

avatar jissues-bot jissues-bot - change - 17 Oct 2014
Closed_Date 0000-00-00 00:00:00 2014-10-17 00:09:20
avatar yireo
yireo - comment - 17 Oct 2014

@Brianteeman, this issue is closed in behalf of #4428 but #4428 is closed in behalf of this #4427? Not a good PR?

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

avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment