Clan-Background nun nur änderbar wenn das Clan-Level wirklich Level 3 beträgt.

main
elfenland 10 years ago
parent 76025ee33f
commit 9d2302da3e

@ -514,7 +514,7 @@ function setProfile($user, $what, $value1, $value2, $clanid, $rootlvl){
mysql_query('UPDATE clan SET Info = \''.$value1.'\' where id = '.$clanid);
return NULL;
case 'Background':
mysql_query('UPDATE clan SET background = \''.$value1.'\' where id = '.$clanid);
if(isClanBackgroundAvailable($clanid)) { mysql_query('UPDATE clan SET background = \''.$value1.'\' where id = '.$clanid) ;}
return NULL;
case 'Leadership':
$clan = getClan($clanid);
@ -579,7 +579,7 @@ function displayEdit($what, $clanid, $rootlvl){
$content = '<tr><td colspan="2"><input class="input" name="value1" value="'.$clan['homepage'].'"/></td></tr>';
break;
case 'Background':
$content = '<tr><td colspan="2"><input class="input" name="value1" value="'.$clan['background'].'"/></td></tr>';
$content = '<tr><td colspan="2"><input class="input" name="value1" value="'.$clan['background'].'"/></td></tr>';
break;
case 'Clanzeichen':
$content = '<tr><td>Prefix: <input class="input" name="value1" value="'.$clan['clanz_pre'].'"/></td><td>Suffix: <input class="input" name="value2" value="'.$clan['clanz_suff'].'"/></td></tr>';

Loading…
Cancel
Save