summaryrefslogtreecommitdiffstats
path: root/include/newgame.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2009-01-17 23:11:49 -0800
committerArun Persaud <arun@nubati.net>2009-01-17 23:11:49 -0800
commitad182154235ff016634c998e52875721f00c4eb0 (patch)
tree9a2c3be2f90fd4fdf4824a5f99e562515114a868 /include/newgame.php
parentb22032b3181b49cf01ef66217316a7b78b5045c9 (diff)
downloade-DoKo-ad182154235ff016634c998e52875721f00c4eb0.tar.gz
e-DoKo-ad182154235ff016634c998e52875721f00c4eb0.tar.bz2
e-DoKo-ad182154235ff016634c998e52875721f00c4eb0.zip
BUGFIX: wrong order of arguments for in_array function
just need to switch them... should be ok now.
Diffstat (limited to 'include/newgame.php')
-rw-r--r--include/newgame.php2
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 */