Skip to content

Commit 528081d

Browse files
authored
Fix #247 - null pointer on trim current line (#249)
1 parent d68658a commit 528081d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/import_functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ private function getModifyDetails($lines) {
541541
array_merge(array($currentLine),$lines));
542542

543543
$currentLine = array_shift($lines);
544-
if (trim($currentLine))
544+
if (is_string($currentLine) && trim($currentLine) !== '')
545545
$processline = true;
546546
}
547547

0 commit comments

Comments
 (0)