From eeaa7a90ac0bdce04244cea8b8c254ca106b9fbf Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 26 Apr 2012 07:12:41 +0000 Subject: [PATCH] quiten warnings, if file are outside open_basedir --- admin/inc/class.admin_statistics.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/inc/class.admin_statistics.inc.php b/admin/inc/class.admin_statistics.inc.php index edd3457559..8e8aa5e67c 100644 --- a/admin/inc/class.admin_statistics.inc.php +++ b/admin/inc/class.admin_statistics.inc.php @@ -210,7 +210,8 @@ function submit_statistic(form,submit_url,confirm_msg) $data['php'] = PHP_VERSION.': '.PHP_SAPI; $data['os'] = PHP_OS; - if (file_exists($file = '/etc/SuSE-release') || file_exists($file = '/etc/redhat-release') || file_exists($file = '/etc/debian_version')) + // @ required to get ride of warning, if files are outside of open_basedir + if (@file_exists($file = '/etc/SuSE-release') || @file_exists($file = '/etc/redhat-release') || @file_exists($file = '/etc/debian_version')) { $data['os'] .= ': '.str_replace(array("\n","\r"),'',implode(',',file($file))); }