From d65f4b2a972be31e5f67b993567eca32674cd569 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Sat, 2 Dec 2023 11:47:25 +0100 Subject: [PATCH] Fix #247 - null pointer on trim current line --- lib/import_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/import_functions.php b/lib/import_functions.php index 23a52f4e..84177215 100644 --- a/lib/import_functions.php +++ b/lib/import_functions.php @@ -541,7 +541,7 @@ private function getModifyDetails($lines) { array_merge(array($currentLine),$lines)); $currentLine = array_shift($lines); - if (trim($currentLine)) + if (is_string($currentLine) && trim($currentLine) !== '') $processline = true; }