Commit 0dc82322 authored by Franco Fichtner's avatar Franco Fichtner

firmware: address crash report; don't pick up faulty output lines

parent 26762123
......@@ -158,6 +158,9 @@ class FirmwareController extends ApiControllerBase
$expanded = explode('|||', $line);
$translated = array();
$index = 0;
if (count($expanded) != count($keys)) {
continue;
}
foreach ($keys as $key) {
$translated[$key] = $expanded[$index++];
}
......
Markdown is supported
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