From 94155f2829c10c91f03c299ab32fab58a603e143 Mon Sep 17 00:00:00 2001 From: MDW Date: Mon, 11 Mar 2024 10:35:57 +0100 Subject: [PATCH] Fix: 'count' on scalar zip->numFiles --- htdocs/core/lib/files.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/files.lib.php b/htdocs/core/lib/files.lib.php index 245b5943b5dd0..d07f1960e155c 100644 --- a/htdocs/core/lib/files.lib.php +++ b/htdocs/core/lib/files.lib.php @@ -2307,7 +2307,7 @@ function dol_compress_file($inputfile, $outputfile, $mode = "gz", &$errorstring // Zip archive will be created only after closing object $zip->close(); - dol_syslog("dol_compress_file success - ".count($zip->numFiles)." files"); + dol_syslog("dol_compress_file success - ".$zip->numFiles." files"); return 1; }