From 0fc78020df026a865dae6b1473eeb549f065c321 Mon Sep 17 00:00:00 2001 From: hecht Date: Thu, 27 Aug 2015 17:47:07 +0000 Subject: [PATCH] Promt user for charname before deleting it --- ag/char_index.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ag/char_index.php b/ag/char_index.php index 41d638b..953de85 100644 --- a/ag/char_index.php +++ b/ag/char_index.php @@ -68,12 +68,11 @@ foreach ($chars as $row) { echo "$row[name] | Status: "; } if ($row['status'] == 'Frei') { - echo "Frei |"; - echo 'Charakter löschen'; + echo "Frei | "; } else { - echo "$row[status] |"; - echo 'Charakter löschen'; + echo "$row[status] | "; } + echo 'Charakter löschen'; ?>