From 9ef8f49636c4cb9a0baadf25fe422a483e38c4b3 Mon Sep 17 00:00:00 2001 From: f0o Date: Mon, 15 Jun 2015 18:02:41 +0000 Subject: [PATCH] Fix PHP5.3 error --- html/install.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/html/install.php b/html/install.php index 60107d1c3a..02dbc8eb74 100644 --- a/html/install.php +++ b/html/install.php @@ -32,9 +32,11 @@ $config['db_name']=$dbname; include("../includes/defaults.inc.php"); // Work out the install directory $cur_dir = explode('/',$_SERVER['DOCUMENT_ROOT']); -if( empty(end($cur_dir)) ) { +$check = end($cur_dir); +if( empty($check) ) { $install_dir = array_pop($cur_dir); } +unset($check); $install_dir = array_pop($cur_dir); $install_dir = implode('/',$cur_dir); $config['install_dir'] = $install_dir;