System update (coding style)

This commit is contained in:
markseu 2016-07-11 16:42:16 +02:00
parent f1a7232407
commit 24c49af963
2 changed files with 2 additions and 2 deletions

View file

@ -428,7 +428,7 @@ class YellowCommandline
{
foreach(preg_split("/[\r\n]+/", $value["obj"]->onCommandHelp()) as $line)
{
list($command, $text) = explode(' ', $line, 2);
list($command) = explode(' ', $line);
if(!empty($command) && is_null($data[$command])) $data[$command] = $line;
}
}

View file

@ -63,7 +63,7 @@ class YellowUpdate
if(empty($feature) || preg_match("/$feature/i", $key)) ++$updates;
}
}
if($statusCode != 200) echo "ERROR checking updates: $data[error]\n";
if($statusCode != 200) echo "ERROR checking updates: $dataLatest[error]\n";
if($updates)
{
echo "Yellow $command: $updates update".($updates==1 ? "":"s")." available\n";