From 5a56e6a9966a656796685494bf75902d01fae3df Mon Sep 17 00:00:00 2001 From: Marius Cramer Date: Thu, 7 May 2015 17:06:48 +0200 Subject: [PATCH] Suppress errors on tmp_out array --- install/install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/install.php b/install/install.php index ae1f56648..12e017807 100644 --- a/install/install.php +++ b/install/install.php @@ -171,7 +171,7 @@ $install_mode = $inst->simple_query('Installation mode', array('standard', 'expe //** Get the hostname $tmp_out = array(); exec('hostname -f', $tmp_out); -$conf['hostname']=$tmp_out[0]; +$conf['hostname'] = @$tmp_out[0]; unset($tmp_out); //** Prevent empty hostname $check = false; @@ -869,4 +869,4 @@ chmod($md5_filename,0700); echo "Installation completed.\n"; -?> +?> \ No newline at end of file -- GitLab