Skip to content

Commit

Permalink
No active contest
Browse files Browse the repository at this point in the history
Fixed issue, where API would return no active contest
  • Loading branch information
fajnyCreeper committed Jun 9, 2020
1 parent 6f94448 commit b57c30d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion active.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down

0 comments on commit b57c30d

Please sign in to comment.