X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=827273954d6247fc6f75d463a6e710fc5a4a85da;hp=81f01c5dc3fe95f72ad07dee1036c2c5cd60899a;hb=3e07ecbf6f6b1f9f027bc5895a43d5efa774d083;hpb=27cbc14d28d072c37474ac1e96d677b88dde27ba diff --git a/include/output.php b/include/output.php index 81f01c5..8272739 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,7 +270,7 @@ function output_header() e-Doko - +