Skip to content

Commit

Permalink
Add proper guarding
Browse files Browse the repository at this point in the history
Signed-off-by: Christian König <ckoenig@posteo.de>
  • Loading branch information
yubiuser committed Apr 5, 2022
1 parent 2852c5b commit 62db3c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api_FTL.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
$return = callFTLAPI("getallqueries");
}

if (!is_bool($return)) {
if (!in_array("FTLnotrunning", $return )) {
// Start the JSON string
echo '{"data":[';
$first = true;
Expand Down

0 comments on commit 62db3c1

Please sign in to comment.