Add proper guarding

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2022-04-05 15:11:06 +02:00
parent 12be6dd732
commit 32d539f1a9

View File

@@ -303,9 +303,13 @@ if (isset($_GET['getAllQueries']) && $auth) {
$return = callFTLAPI("getallqueries");
}
<<<<<<< HEAD
if (array_key_exists("FTLnotrunning", $return)) {
$data = array("FTLnotrunning" => true);
} else {
=======
if (!in_array("FTLnotrunning", $return )) {
>>>>>>> Add proper guarding
// Start the JSON string
echo '{"data":[';
$first = true;