From 5a56e6a9966a656796685494bf75902d01fae3df Mon Sep 17 00:00:00 2001
From: Marius Cramer <m.cramer@pixcept.de>
Date: Thu, 07 May 2015 11:06:48 -0400
Subject: [PATCH] Suppress errors on tmp_out array

---
 install/install.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/install/install.php b/install/install.php
index ae1f566..12e0178 100644
--- a/install/install.php
+++ b/install/install.php
@@ -171,7 +171,7 @@
 //** 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 @@
 echo "Installation completed.\n";
 
 
-?>
+?>
\ No newline at end of file

--
Gitblit v1.9.1