Skip to content

Commit

Permalink
Fix undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Aug 27, 2018
1 parent 2557252 commit 83156b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion info2.sh
Expand Up @@ -158,7 +158,7 @@ switch($argv[1]) {
if ($approvedtest = check_test(strtolower($data->Identifier),$tests)) {
if ($argv[2] == 'all') {
// we already know the test's title matches, so let's see if the desc does
if ($descfield[$approvedtest] == '' || $data->Description == $descfield[$approvedtest]) {
if ($approvedtest != 'all' && ($descfield[$approvedtest] == '' || $data->Description == $descfield[$approvedtest])) {
$resulttmp[$approvedtest] = floatval($data->Data->Entry->Value);
// Append any missing tests with 0 value
foreach ($tests as $test => $internalname) {
Expand Down

0 comments on commit 83156b9

Please sign in to comment.