fix PHP 8.0 TypeError: count(): Argument #1 ($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 4cc8eea7b6
commit e2f06d0b94

View File

@ -317,7 +317,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(