summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2010-09-22 13:22:37 -0700
committerArun Persaud <arun@nubati.net>2010-09-22 13:22:37 -0700
commitf99c17830bcf298a9b05d04a48f9c1b6548a231b (patch)
treeebe0a95f93f597d93805f1c9672d37d888cad66b /include
parent21f25368b52c73be131cf3ad2d0cb7d1a567eb2a (diff)
downloade-DoKo-f99c17830bcf298a9b05d04a48f9c1b6548a231b.tar.gz
e-DoKo-f99c17830bcf298a9b05d04a48f9c1b6548a231b.tar.bz2
e-DoKo-f99c17830bcf298a9b05d04a48f9c1b6548a231b.zip
BUGFIX: fixed last commit
Diffstat (limited to 'include')
-rw-r--r--include/game.php7
-rw-r--r--include/output.php2
2 files changed, 5 insertions, 4 deletions
diff --git a/include/game.php b/include/game.php
index 04df162..cd77bf3 100644
--- a/include/game.php
+++ b/include/game.php
@@ -1994,7 +1994,7 @@ switch($mystatus)
$howmanycards = 0;
foreach($mycards as $card)
{
- if($howmanycard>1)
+ if($howmanycards>1)
break;
/* display only cards that the player is allowed to play as links, the rest just display normal
@@ -2013,10 +2013,11 @@ switch($mystatus)
in_array($gametype,array('normal','wedding','trump','silent'))
)
)
- continue ;
+ continue;
else
$howmanycards++;
}
+
if($howmanycards==1)
$howmanycards=1;
else
@@ -2042,7 +2043,7 @@ switch($mystatus)
)
display_card($card,$PREF['cardset']);
else
- display_link_card($card,$PREF['cardset'],$selected=$howmanycards);
+ display_link_card($card,$PREF['cardset'],$type='card',$selected=$howmanycards);
}
}
else if($mystatus=='play' )
diff --git a/include/output.php b/include/output.php
index 0c2ff96..f4d3fdf 100644
--- a/include/output.php
+++ b/include/output.php
@@ -205,7 +205,7 @@ function display_card($card,$dir="english")
function display_link_card($card,$dir="english",$type="card", $selected=0)
{
if($selected)
- $selected = 'selected="selected"';
+ $selected = 'checked="checked"';
if( $card/2 - (int)($card/2) == 0.5)
echo "<div class=\"cardinput\"><input type=\"radio\" name=\"".$type."\" value=\"".$card."\" $selected /><img src=\"cards/".$dir."/".$card.".png\" alt=\"".DB_get_card_name($card)."\" /></div>\n";