diff --git a/active.php b/active.php index 16fdae3..7d5e6f3 100644 --- a/active.php +++ b/active.php @@ -3,7 +3,7 @@ function GetActiveId($bot) { $res = $bot->contestsList(); - if (is_null($res)) + if (is_null($res) || is_null($res["active"])) return false; $contestId = $res["active"]["_id"];