summaryrefslogtreecommitdiffstats
path: root/include/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/db.php')
-rw-r--r--include/db.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/db.php b/include/db.php
index 6e1af93..27d639e 100644
--- a/include/db.php
+++ b/include/db.php
@@ -852,6 +852,9 @@ function DB_set_recovery_password($user,$newpw)
function DB_get_card_name($card)
{
+ if($card==0)
+ return 'backside';
+
$r = DB_query_array("SELECT strength,suite FROM Card WHERE id='$card'");
if($r)