Fixed visual bug when the player has 7 dragonballs
main
radiskull 12 years ago
parent 5b9834139b
commit 499c0c12fc

@ -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']);

@ -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 '<a href="index.php?as=dragonballs">'.$row['name'].' einsetzen ('.$row['anzahl'].')</a>';
echo '<a href="index.php?as=dragonballs">'.$row['name'].' einsetzen ('.$row['anzahl'].')</a><br>';
} else if(($row['id'] == 1 || $row['id'] == 2) && $row['anzahl'] > 0){
// Potaras und Bohnen
echo '<a href="index.php?as=sp_item&item_id='.$row['id'].'">'.$row['name'].' einsetzen ('.$row['anzahl'].')</a><br>';

Loading…
Cancel
Save