diff --git a/html/install.php b/html/install.php index 1c625fc00..60107d1c3 100644 --- a/html/install.php +++ b/html/install.php @@ -32,7 +32,9 @@ $config['db_name']=$dbname; include("../includes/defaults.inc.php"); // Work out the install directory $cur_dir = explode('/',$_SERVER['DOCUMENT_ROOT']); -$install_dir = array_pop($cur_dir); +if( empty(end($cur_dir)) ) { + $install_dir = array_pop($cur_dir); +} $install_dir = array_pop($cur_dir); $install_dir = implode('/',$cur_dir); $config['install_dir'] = $install_dir; @@ -221,7 +223,7 @@ foreach ($modules as $extension) } // Check for pear install -require_once 'System.php'; +include_once 'System.php'; if(class_exists('System')===true) { $ext_loaded = 'yes'; @@ -229,7 +231,7 @@ if(class_exists('System')===true) } else { - $ext_loaded = 'yes'; + $ext_loaded = 'no'; $row_class = 'danger'; }