get same tagged data doesn't always return an array
Submitted
AndyMillne
, Aug 09 2012 05:27 AM | Last updated Aug 26 2012 05:37 PM
In /admin/applications/forums/modules_public/forums/topics.php we retrieve the tags in _getSameTaggedData(). If no tags exist the tag library returns (bool) false.
On line 1228 we then check for results with;
as $results is a boolean count returns true and we therefore get the following error;
Warning: Invalid argument supplied for foreach() in /admin/applications/forums/modules_public/forums/topics.php on line 1235
We need to have the tag library return an array or explicitly check for an array in that condition.
On line 1228 we then check for results with;
if ( count( $results ) )
as $results is a boolean count returns true and we therefore get the following error;
Warning: Invalid argument supplied for foreach() in /admin/applications/forums/modules_public/forums/topics.php on line 1235
We need to have the tag library return an array or explicitly check for an array in that condition.
| Status: | Fixed |
| Version: | 0 |
| Fixed In: | 3.3.5 |











2 Comments
Updating Status to: Fixed
-
If it is not of too much of a hassle could you please provide a hotfix?
Thank you