From 5effa22a24b50816320148a49683a407a63c36f8 Mon Sep 17 00:00:00 2001 From: radiskull Date: Wed, 13 Aug 2014 04:27:47 +0000 Subject: [PATCH] =?UTF-8?q?zus=C3=A4tzliche=20Pr=C3=BCfung=20eingebaut,=20?= =?UTF-8?q?bug=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ag/char_profil.php | 2 +- ag/include/attackenset.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ag/char_profil.php b/ag/char_profil.php index 2de5507..858c410 100644 --- a/ag/char_profil.php +++ b/ag/char_profil.php @@ -387,7 +387,7 @@ function eintragen($char_id,$name,$user_ida) { echo 'Profil erfolgreich geändert!!
'; echo '
weiter...
'; } else { - //displayErrorMessage(NULL, $fehler[0].'
'.$fehler[1].'
'.$fehler[2], displayHistoryBackLink()); + displayErrorMessage(NULL, $fehler[0].'
'.$fehler[1].'
'.$fehler[2], displayHistoryBackLink()); return; } } diff --git a/ag/include/attackenset.inc.php b/ag/include/attackenset.inc.php index 5b3dba8..926acdc 100644 --- a/ag/include/attackenset.inc.php +++ b/ag/include/attackenset.inc.php @@ -126,7 +126,7 @@ function validateAttackSet($attackSet) { if($types[$row]['anzahl'] < $key) { return 'Fehler die Technik vom type '.$row.' darf nur '.$types[$row]['anzahl'].' mal benutzt werden.'; } else { - if(is_string($types[$row]['kategorie'])) { + if(is_string($types[$row]['kategorie']) && strlen($types[$row]['kategorie']) > 0) { if($kategorie[$types[$row]['kategorie']] == null) { $kategorie[$types[$row]['kategorie']] = array($row); } else {