From a622aee43d3d1991ffe08ae5aef98fdfcc8ba551 Mon Sep 17 00:00:00 2001 From: dignajar Date: Fri, 26 Jun 2015 02:10:30 -0300 Subject: [PATCH] Bug fixes --- install.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/install.php b/install.php index 93819dc0..aab3704e 100644 --- a/install.php +++ b/install.php @@ -49,18 +49,20 @@ function checkSystem() $phpModules = get_loaded_extensions(); } - if(!file_exists(PATH_ROOT.'.htaccess')) - { - $errorText = 'Missing file, upload the file .htaccess (ERR_201)'; - error_log($errorText, 0); - array_push($stdOut, $errorText); - } - if(!version_compare(phpversion(), '5.3', '>=')) { $errorText = 'Current PHP version '.phpversion().', you need > 5.3. (ERR_202)'; error_log($errorText, 0); array_push($stdOut, $errorText); + + return $stdOut; + } + + if(!file_exists(PATH_ROOT.'.htaccess')) + { + $errorText = 'Missing file, upload the file .htaccess (ERR_201)'; + error_log($errorText, 0); + array_push($stdOut, $errorText); } if(!in_array('dom', $phpModules))