mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
fix PHP 8.0 error: count(): Argument #1 ($value) must be of type Countable|array, string given
This commit is contained in:
parent
1fd6a1f4aa
commit
937a96198c
@ -358,7 +358,7 @@ class importexport_import_csv implements importexport_iface_import_record { //,
|
||||
if ($record[$name]) {
|
||||
// Automatically handle text owner without explicit translation
|
||||
$new_owner = importexport_helper_functions::account_name2id($record[$name]);
|
||||
if(count($new_owner) != count(explode(',',$record[$name])))
|
||||
if(!is_array($new_owner) || count($new_owner) != count(explode(',', $record[$name])))
|
||||
{
|
||||
// Unable to parse value into account
|
||||
$warnings[] = $name . ': ' .lang('%1 is not a known user or group', $record[$name]);
|
||||
|
Loading…
Reference in New Issue
Block a user