From 5abc08ba9d8d6d09491397207f8396001a12af39 Mon Sep 17 00:00:00 2001 From: slawkens Date: Sat, 13 Apr 2019 03:58:20 +0200 Subject: [PATCH] * fix "Notice: Undefined index: blesscount" in Player editor --- system/pages/admin/players.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/pages/admin/players.php b/system/pages/admin/players.php index 5a7508bd..4643f06c 100644 --- a/system/pages/admin/players.php +++ b/system/pages/admin/players.php @@ -232,8 +232,8 @@ if ($id > 0) { foreach ($_POST['skills_tries'] as $skill => $value) verify_number($value, $skills[$skill][0] . ' tries', 10); - $bless_count = $_POST['blesscount']; if ($hasBlessingColumn) { + $bless_count = $_POST['blesscount']; for ($i = 1; $i <= $bless_count; $i++) { $a = 'blessing' . $i; ${'blessing' . $i} = (isset($_POST[$a]) && $_POST[$a] == 'true');