diff options
-rw-r--r-- | include/newgame.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/newgame.php b/include/newgame.php index 7a88a80..8930b13 100644 --- a/include/newgame.php +++ b/include/newgame.php @@ -27,7 +27,7 @@ else $names = DB_get_all_user_names_open_for_games(); /* add player if he is not open for games */ - if(!in_array($names,$_SESSION["name"])) + if(!in_array($_SESSION["name"],$names)) $names[]=$_SESSION["name"]; /* add some randomness */ |