X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=f2fe52414dcb695c7135f1d68b7d92b838d89c15;hp=2f846be70badcabaf4b5eb930efc2c4e168f141e;hb=ca3071da712685fd941f97d3610bad8635bf9c5c;hpb=36b10f3b006cfc919fdb657e1f06f41969082f0e diff --git a/include/output.php b/include/output.php index 2f846be..f2fe524 100644 --- a/include/output.php +++ b/include/output.php @@ -143,7 +143,7 @@ function display_card($card,$dir="english") /* cards are only availabl for the odd values, e.g. 1.png, 3.png, ... * convert even cards to the matching odd value */ - if( $card/2 - (int)($card/2) == 0.5) + if( $card/2 - (int)($card/2) == 0.5 || $card == 0) echo "\"".DB_get_card_name($card)."\"\n"; else echo "\"".DB_get_card_name($card-1)."\"\n"; @@ -270,13 +270,13 @@ function output_header() e-Doko - +