* Adjust code.

This commit is contained in:
zhouxin
2022-04-15 02:35:39 +00:00
parent 773895ec3b
commit 91aeb0a5b3
+1 -1
View File
@@ -623,7 +623,7 @@ class fileModel extends model
$line = str_replace('""', '"', $line);
/* if only one column then line is the data. */
if(strpos($line, ',') === false and substr($line, 0, 1) != '"' and $col == -1)
if(strpos($line, ',') === false and $line[0] != '"' and $col == -1)
{
$data[$row][0] = trim($line, '"');
}