From: Arun Persaud Date: Sun, 18 Jan 2009 07:11:49 +0000 (-0800) Subject: BUGFIX: wrong order of arguments for in_array function X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=commitdiff_plain;h=ad182154235ff016634c998e52875721f00c4eb0 BUGFIX: wrong order of arguments for in_array function just need to switch them... should be ok now. --- 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 */