From 499c0c12fc396fe0b7523b81e0f4445204acf6b5 Mon Sep 17 00:00:00 2001 From: radiskull Date: Fri, 1 Feb 2013 17:27:12 +0000 Subject: [PATCH] Fixed #127 Fixed visual bug when the player has 7 dragonballs --- ag/dragonballs.php | 3 +++ ag/item.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ag/dragonballs.php b/ag/dragonballs.php index 863fe4d..83db966 100644 --- a/ag/dragonballs.php +++ b/ag/dragonballs.php @@ -107,6 +107,9 @@ function wuenscheSpecialChar($user, $specialcharname, $newname = ''){ function wuenscheUserRename($user, $newname){ + if($newname == null || strlen(trim($newname)) < 3) { + return false; + } $sql = 'Insert into user_rename(pre_name, post_name, datum, userid, wunsch) values(\''.$user['nickname'].'\', \''.$newname.'\', now(), '.$user['id'].', 1)'; mysql_query($sql); mysql_query('Update user set nickname = \''.$newname.'\' WHERE id = '.$user['id']); diff --git a/ag/item.php b/ag/item.php index 1503fd9..76001e0 100644 --- a/ag/item.php +++ b/ag/item.php @@ -373,7 +373,7 @@ $item1 = mysql_query("SELECT item_id, id, ru_mal FROM ware WHERE user='$user[id] while($row = mysql_fetch_assoc($qry)){ // 7 DBs, 1 Potara und 1 Bohne gibts derzeit if($row['id'] == 11 && $row['anzahl'] >= 7){ - echo ''.$row['name'].' einsetzen ('.$row['anzahl'].')'; + echo ''.$row['name'].' einsetzen ('.$row['anzahl'].')
'; } else if(($row['id'] == 1 || $row['id'] == 2) && $row['anzahl'] > 0){ // Potaras und Bohnen echo ''.$row['name'].' einsetzen ('.$row['anzahl'].')
';