1
0
mirror of https://github.com/EGroupware/egroupware.git synced 2025-01-16 19:08:27 +01:00

fix PHP 8.0 TypeError: count(): Argument ($value) must be of type Countable|array, bool given

This commit is contained in:
Ralf Becker 2021-11-23 08:40:58 +01:00
parent 2056400695
commit 3b08a5979a

View File

@ -308,7 +308,7 @@ class importexport_schedule_ui
'method' => 'HEAD',
'ignore_errors' => 1
)));
$headers = get_headers($data['target'],1);
$headers = get_headers($data['target'],1) ?: [];
// Reset...
stream_context_set_default(array('http'=>array(