X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/6eca3aa915782488ab0d688d7397c42e3fdf30b4..129402901986004b50bf8bb338f681b0a0983800:/lib/functions.php?ds=sidebyside

diff --git a/lib/functions.php b/lib/functions.php
index 4dcf5de..95a5595 100644
--- a/lib/functions.php
+++ b/lib/functions.php
@@ -579,13 +579,15 @@ function show_errors()
 
 function check_errors($cfg)
 {
-    if (file_exists(JIRAFEAU_ROOT . 'install.php')
-        && !($cfg['installation_done'] === true)) {
-        header('Location: install.php');
-        exit;
+    if (!($cfg['installation_done'] === true)) {
+        if (file_exists(JIRAFEAU_ROOT . 'install.php')) {
+            header('Location: install.php');
+            exit;
+        } else {
+            add_error(t('INSTALL_FILE_NOT_FOUND_TITLE'), t('INSTALL_FILE_NOT_FOUND_DESC'));
+        }
     }
 
-    /* Checking for errors. */
     if (!is_writable(VAR_FILES)) {
         add_error(t('FILE_DIR_W'), VAR_FILES);
     }