Permalink
Browse files

Expired session might cause undefined index

  • Loading branch information...
nikop committed Jan 21, 2012
1 parent 6e43161 commit b4bbb7424cda6fd227a1484663fa2510b427b3b1
Showing with 3 additions and 0 deletions.
  1. +3 −0 Sources/Submit-ibp.php
View
@@ -73,6 +73,9 @@ function ArcadeIBPXMLPlay(&$game, &$session)
// v3
function ArcadeIBP3GetGame()
{
+ if (empty($_SESSION['arcade']['ibp_game']))
+ return false;
+
return getGameInfo($_SESSION['arcade']['ibp_game']);
}

0 comments on commit b4bbb74

Please sign in to comment.