System update (coding style)
This commit is contained in:
parent
f1a7232407
commit
24c49af963
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue