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