mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
fix PHP 8.0 TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given
This commit is contained in:
parent
7d95139fa9
commit
0812bfaa79
@ -615,7 +615,7 @@ class infolog_bo
|
||||
function &read($info_id,$run_link_id2from=true,$date_format='ts',$ignore_acl=false)
|
||||
{
|
||||
//error_log(__METHOD__.'('.array2string($info_id).', '.array2string($run_link_id2from).", '$date_format') ".function_backtrace());
|
||||
if (is_scalar($info_id) || isset($info_id[count($info_id)-1]))
|
||||
if (is_scalar($info_id) || is_array($info_id) && isset($info_id[count($info_id)-1]))
|
||||
{
|
||||
if (is_scalar($info_id) && !is_numeric($info_id))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user