mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed error when new list is empty
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
$returnArray = array($diff, $id[0]["id"], time(), $data["conf"]["startTime"], $id[0]["title"], $data["conf"]["views"]);
|
$returnArray = array($diff, $id[0]["id"], time(), $data["conf"]["startTime"], $id[0]["title"], $data["conf"]["views"]);
|
||||||
$returnArray = json_encode($returnArray);
|
$returnArray = json_encode($returnArray);
|
||||||
echo $returnArray;
|
echo $returnArray;
|
||||||
|
}else{
|
||||||
|
echo("[0,0,0,0,0,0]");
|
||||||
}
|
}
|
||||||
echo("[0,0,0,0,0,0]");
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user