From 3b08a5979a0500cf144f3c4060eb2ecb30064018 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 23 Nov 2021 08:40:58 +0100 Subject: [PATCH] fix PHP 8.0 TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given --- importexport/inc/class.importexport_schedule_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/importexport/inc/class.importexport_schedule_ui.inc.php b/importexport/inc/class.importexport_schedule_ui.inc.php index de6140cad2..b7a6efdcff 100644 --- a/importexport/inc/class.importexport_schedule_ui.inc.php +++ b/importexport/inc/class.importexport_schedule_ui.inc.php @@ -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(