]> git.mxchange.org Git - mailer.git/commitdiff
Fatal message removed in installation when the script is installed
authorRoland Häder <roland@mxchange.org>
Sun, 18 May 2008 16:30:48 +0000 (16:30 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 18 May 2008 16:30:48 +0000 (16:30 +0000)
inc/header.php

index 20500100af20751f4e6d4f6cacb22be1a6c2b721..ce675dc08c85d344350414433699a87de0d858eb 100644 (file)
@@ -80,7 +80,9 @@ if (($header != "1") && ($header != "2")) {
                        } else {
                                // Configuration not found!
                                define('__PAGE_TITLE', NO_CONFIG_FOUND_TITLE);
-                               ADD_FATAL(NO_CONFIG_FOUND);
+
+                               // Do not add the fatal message in installation mode
+                               if (basename($_SERVER['SELF']) != "install.php") ADD_FATAL(NO_CONFIG_FOUND);
                        }
                }