From 1de133a79b1fe965dd0a4cd5c0c54bda1bc130e6 Mon Sep 17 00:00:00 2001 From: denghongtao Date: Tue, 13 Sep 2022 08:28:16 +0000 Subject: [PATCH] * Fix notes. --- test/lib/controlapi.php | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) 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 .= '