User tests: Successful: Unsuccessful:
Pull Request for Issue #23999, #24039
Thanks @ReLater for the fix.
Cast the value to an array.
Install test demo.
On the frontend, click All Tags.
Click Lime.
Click Feed Entries.
Check PHP error log to see warning and notices.
PHP Warning: Invalid argument supplied for foreach() in \components\com_tags\views\tag\view.feed.php on line 35
PHP Notice: Undefined index: id in \components\com_tags\router.php on line 79
PHP Notice: Undefined index: id in \components\com_tags\router.php on line 84
PHP Notice: Undefined index: id in \components\com_tags\router.php on line 84
| Status | New | ⇒ | Pending |
| Category | ⇒ | com_tags Front End |
| Labels |
Added:
?
|
||
I have tested this item
If you are sure that id always has a value (I don't know if we can rely on it here) then that's OK but if id is empty you get an array wit 1 element without value
Array([0] =>)
instead of an empty array (array) $app->input->get('id');
Array();
I don't remember where I have tested that scenario, feed or html URLs, with or without SEF ..., and can't reproduce it at the moment. All I know is that I used (array) consciously. I "striked" my comment. Time will tell.
@dioubernardo please Test as this Issue was reported by you too.
I have tested this item
| Status | Pending | ⇒ | Ready to Commit |
RTC
RTC
@franz-wohl koenig i'm sorry i was watching something else, just ignore
| Status | Ready to Commit | ⇒ | Fixed in Code Base |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-03-07 08:40:35 |
| Closed_By | ⇒ | HLeithner | |
| Labels |
Added:
?
|
||
thx
I have tested this item✅ successfully on 8a29d6a
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24051.