Skip to content

Commit d1c6c2f

Browse files
committed
rector
1 parent 4900d3f commit d1c6c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/SSH/Services/Database/AbstractDatabase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ protected function tableToArray(string $data, bool $keepHeader = false): array
358358

359359
$rows = [];
360360
foreach ($lines as $line) {
361-
$separator = ! empty($this->separator) ? $this->separator : "\t";
361+
$separator = $this->separator === '' || $this->separator === '0' ? "\t" : $this->separator;
362362
$row = explode($separator, $line);
363363
$row = array_map('trim', $row);
364364
$rows[] = $row;

0 commit comments

Comments
 (0)