From 528081d90977edb9c1c2750b46ac54fd9b88ce7f Mon Sep 17 00:00:00 2001 From: William Desportes Date: Mon, 8 Jan 2024 01:02:24 +0100 Subject: [PATCH] Fix #247 - null pointer on trim current line (#249) --- 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 @@ class ImportLDIF extends Import { array_merge(array($currentLine),$lines)); $currentLine = array_shift($lines); - if (trim($currentLine)) + if (is_string($currentLine) && trim($currentLine) !== '') $processline = true; }