Commit 5a56e6a9 authored by Marius Cramer's avatar Marius Cramer

Suppress errors on tmp_out array

parent bb690d44
...@@ -171,7 +171,7 @@ $install_mode = $inst->simple_query('Installation mode', array('standard', 'expe ...@@ -171,7 +171,7 @@ $install_mode = $inst->simple_query('Installation mode', array('standard', 'expe
//** Get the hostname //** Get the hostname
$tmp_out = array(); $tmp_out = array();
exec('hostname -f', $tmp_out); exec('hostname -f', $tmp_out);
$conf['hostname']=$tmp_out[0]; $conf['hostname'] = @$tmp_out[0];
unset($tmp_out); unset($tmp_out);
//** Prevent empty hostname //** Prevent empty hostname
$check = false; $check = false;
...@@ -869,4 +869,4 @@ chmod($md5_filename,0700); ...@@ -869,4 +869,4 @@ chmod($md5_filename,0700);
echo "Installation completed.\n"; echo "Installation completed.\n";
?> ?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment