mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +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
edf8e68189
commit
6d4de34749
@ -279,7 +279,7 @@ class importexport_export_csv implements importexport_iface_export_record
|
||||
}
|
||||
// Fall through for other settings
|
||||
case 'select':
|
||||
if (count($c_field['values']) == 1 && isset($c_field['values']['@']))
|
||||
if (!empty($c_field['values']) && count($c_field['values']) == 1 && isset($c_field['values']['@']))
|
||||
{
|
||||
$c_field['values'] = Api\Storage\Customfields::get_options_from_file($c_field['values']['@']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user