diff --git a/test/lib/controlapi.php b/test/lib/controlapi.php index 141e4ebdc8..ca160059b4 100755 --- a/test/lib/controlapi.php +++ b/test/lib/controlapi.php @@ -37,14 +37,7 @@ class apiCheckModel if($entries) { $results = $this->checkInput($path); - if($results) - { - echo 'true'; - } - else - { - echo 'false'; - } + echo $results ? 'true' : 'false' ; foreach($results as $result) { @@ -70,14 +63,7 @@ class apiCheckModel { $results = $this->checkInput($path); - if($results) - { - echo 'true'; - } - else - { - echo 'false'; - } + echo $results ? 'true' : 'false' ; $strResults = ''; $strResults .= '