BUGFIX: cards didn't show up anymore at the end of the game
authorArun Persaud <arun@nubati.net>
Wed, 4 Jul 2007 17:44:52 +0000 (10:44 -0700)
committerArun Persaud <arun@nubati.net>
Wed, 4 Jul 2007 17:44:52 +0000 (10:44 -0700)
forgot to check in an if-clause if the player was still playing or if the game was already over

index.php

index a41158e854355455776b1fafe3795fb1a80493f8..bae38d4c778adcc6bc72563167053b79cb9a5042 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1532,7 +1532,7 @@ else if(myisset("me"))
       $mycards = mysort($mycards,$gametype);
       echo "<div class=\"mycards\">\n";
       
-      if($myturn && !myisset("card"))
+      if($myturn && !myisset("card") && $mystatus=='play' )
        {
          echo "Hello ".$myname.", it's your turn!  <br />\n";
          echo "Your cards are: <br />\n";