错误描述:
执行一下财务报表任务:
php xcat FinanceMail day
php xcat FinanceMail week
php xcat FinanceMail month
会报错:PHP Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/cccccccc.xyz/vendor/esdeathlove/datatables/src/Datatables.php on line 213
错误描述: 执行一下财务报表任务: php xcat FinanceMail day php xcat FinanceMail week php xcat FinanceMail month 会报错:PHP Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/cccccccc.xyz/vendor/esdeathlove/datatables/src/Datatables.php on line 213
修复方法:打开Datatables.php的213行:if (count($this->edit) > 0) 改为 if (is_array($this->edit) && count($this->edit) > 0)