From 096d60009b38a34b60c521110bc65553b05e5b26 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 17 Jul 2014 08:42:39 -0400 Subject: [PATCH] Clarify variable's origin Signed-off-by: Marc Delisle --- user_password.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user_password.php b/user_password.php index 17f1eca105..cabad4bb67 100644 --- a/user_password.php +++ b/user_password.php @@ -21,8 +21,8 @@ $scripts->addFile('server_privileges.js'); * Displays an error message and exits if the user isn't allowed to use this * script */ -if (! $cfg['ShowChgPassword']) { - $cfg['ShowChgPassword'] = $GLOBALS['dbi']->selectDb('mysql'); +if (! $GLOBALS['cfg']['ShowChgPassword']) { + $GLOBALS['cfg']['ShowChgPassword'] = $GLOBALS['dbi']->selectDb('mysql'); } if ($cfg['Server']['auth_type'] == 'config' || ! $cfg['ShowChgPassword']) { PMA_Message::error(