Fix #247 - null pointer on trim current line (#249)

This commit is contained in:
William Desportes 2024-01-08 01:02:24 +01:00 committed by GitHub
parent d68658a82b
commit 528081d909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -541,7 +541,7 @@ class ImportLDIF extends Import {
array_merge(array($currentLine),$lines)); array_merge(array($currentLine),$lines));
$currentLine = array_shift($lines); $currentLine = array_shift($lines);
if (trim($currentLine)) if (is_string($currentLine) && trim($currentLine) !== '')
$processline = true; $processline = true;
} }