From 2c1f14d24b644e02f59758d04e1a029e2e73ed5a Mon Sep 17 00:00:00 2001 From: Michael Save Date: Sat, 21 Apr 2012 12:42:41 +1000 Subject: Improvements to new mod panel --- inc/mod/pages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/mod/pages.php') diff --git a/inc/mod/pages.php b/inc/mod/pages.php index e40dc241..3754268d 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -508,7 +508,7 @@ function mod_user($uid) { return; } - if (hasPermission($config['dmod']['change_password']) && $uid == $mod['id'] && isset($_POST['password'])) { + if (hasPermission($config['mod']['change_password']) && $uid == $mod['id'] && isset($_POST['password'])) { if ($_POST['password'] != '') { $query = prepare('UPDATE `mods` SET `password` = SHA1(:password) WHERE `id` = :id'); $query->bindValue(':id', $uid); -- cgit v1.3