Jump to content


Photo

get same tagged data doesn't always return an array


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;

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 Fixed In to: 3.3.5
Updating Status to: Fixed

-
Hi Andy,
If it is not of too much of a hassle could you please provide a hotfix?
Thank you