]> git.mxchange.org Git - mailer.git/commitdiff
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 0a26a6ff364642566e579ff847123b6c6982688e..b9b59ece5f405ce696c877bf469619881f8cb448 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;