CMS MADE SIMPLE FORGE

LISE

 

[#12006] PHP Warning in Apache error logs: Parameter must be an array or an object that implements Countable

avatar
Created By: Deleted User (deleteduser_11200)
Date Submitted: Fri Mar 29 05:56:42 -0400 2019

Assigned To: Fernando Morgado (JoMorg)
Version: 1.3.1
CMSMS Version: 2.2.10
Severity: Minor
Resolution: Fixed
State: Open
Summary:
PHP Warning in Apache error logs: Parameter must be an array or an object that implements Countable
Detailed Description:
Another anoying warning in the Apache error logs:

[Fri Mar 29 10:42:59.586049 2019] [proxy_fcgi:error] [pid 15811:tid
140234683565824] [client 192.168.2.16:48008] AH01071: Got error 'PHP message:
PHP Warning:  count(): Parameter must be an array or an object that implements
Countable in /path/public/modules/LISE/LISE.module.php on line 751\nPHP message:
PHP Warning:  count(): Parameter must be an array or an object that implements
Countable in /path/public/modules/LISE/LISE.module.php on line 751\n', referer:


Change:

    if( count( func_num_args() ) )

Into:

if(func_num_args() > 0)



History

Comments
avatar
Date: 2019-06-25 20:18
Posted By: John Beatrice (mww)

Duplicate of http://dev.cmsmadesimple.org/bug/view/11796
      
avatar
Date: 2020-10-11 12:35
Posted By: Fernando Morgado (JoMorg)

Fixed and released
      
Updates

Updated: 2020-10-11 12:35
resolution_id: => 7
assigned_to_id: 100 => 12532