]> git.mxchange.org Git - mailer.git/blobdiff - inc/header.php
Fatal message removed in installation when the script is installed
[mailer.git] / 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);
                        }
                }