Bug 4817: g/l account inquiry can timeout due to slow sql. @Braath Waate.
[fa-stable.git] / admin / change_current_user_password.php
index 628fcf897a95d51a4d693802de147fe00c1aa39d..1b69e00ec5f7fdea54e09a49ad0be8494c9a83ec 100644 (file)
@@ -64,7 +64,7 @@ if (isset($_POST['UPDATE_ITEM']) && check_csrf_token())
 
        if (can_process())
        {
-               if ($allow_demo_mode) {
+               if ($SysPrefs->allow_demo_mode) {
                    display_warning(_("Password cannot be changed in demo mode."));
                } else {
                        update_user_password($_SESSION["wa_current_user"]->user, 
@@ -99,4 +99,3 @@ end_table(1);
 submit_center( 'UPDATE_ITEM', _('Change password'), true, '',  'default');
 end_form();
 end_page();
-?>