CMS MADE SIMPLE FORGE

JMDownMan

 

[#12347] PHP Warning: count(): Parameter must be an array or an object that implements Countable

avatar
Created By: Simon (creopard)
Date Submitted: Wed Aug 05 08:33:45 -0400 2020

Assigned To: Fernando Morgado (JoMorg)
Version: 1.RC.2
CMSMS Version: 2.2.14
Severity: Trivial
Resolution: None
State: Open
Summary:
PHP Warning: count(): Parameter must be an array or an object that implements Countable
Detailed Description:
PHP Warning:  count(): Parameter must be an array or an object that implements
Countable in /modules/JMDownMan/function.assingfiles.php on line 103

the array "$entryarray" used in line 103
$smarty->assign('itemcount', count($entryarray));

should be inizialized first (e.g. at the very top) like:
$entryarray = array();


History