Skip to content
Snippets Groups Projects
Commit 56e8d72a authored by Ievgen Shakhsuvarov's avatar Ievgen Shakhsuvarov Committed by GitHub
Browse files

MAGETWO-83977: Handle empty or incorrect lines in a language CSV #12304

parents 2c3cd64b 53ffa37c
Branches
No related merge requests found
four and 75/100,4.75
four and 5/10,4.50
\ No newline at end of file
four and 5/10,4.50
......@@ -193,7 +193,9 @@ class Dictionary
foreach ($foundCsvFiles as $foundCsvFile) {
$file = $directoryRead->openFile($foundCsvFile);
while (($row = $file->readCsv()) !== false) {
$result[$row[0]] = $row[1];
if (is_array($row) && count($row) > 1) {
$result[$row[0]] = $row[1];
}
}
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment