Missing admin account or wrong pass is not fatal
authorRoland Häder <roland@mxchange.org>
Fri, 30 Oct 2009 09:56:21 +0000 (09:56 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 30 Oct 2009 09:56:21 +0000 (09:56 +0000)
inc/modules/admin.php

index 0a26a6f..b9b59ec 100644 (file)
@@ -369,13 +369,13 @@ if (!isAdminRegistered()) {
 
                case '404': // Administrator login not found
                        setRequestPostElement('ok', $ret);
-                       addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('ADMIN_404'), getSession('admin_login')));
+                       loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_404'), getSession('admin_login')));
                        destroyAdminSession();
                        break;
 
                case 'pass': // Wrong password
                        setRequestPostElement('ok', $ret);
-                       addFatalMessage(__FILE__, __LINE__, getMessage('WRONG_PASS'));
+                       loadTemplate('admin_settings_saved', false, getMessage('WRONG_PASS'));
                        destroyAdminSession();
                        break;