From c53695f5ac6ec973a8e8b4af914f629b2c40f465 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 15 Dec 2011 10:08:42 -0500
Subject: [PATCH] - Fixed some php notices. - Added error_reporting level in app.inc.php to E_ALL & ~E_NOTICE
---
interface/lib/config.inc.php | 1 +
interface/lib/app.inc.php | 11 ++++++++---
interface/web/dashboard/lib/custom_menu.inc.php | 2 ++
3 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/interface/lib/app.inc.php b/interface/lib/app.inc.php
index 0690d5d..597be87 100644
--- a/interface/lib/app.inc.php
+++ b/interface/lib/app.inc.php
@@ -28,12 +28,17 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+//* Enable gzip compression for the interface
+ob_start('ob_gzhandler');
+
+//* Set error reporting level when we are not on a developer system
+if(DEVSYSTEM == 0) {
+ @ini_set('error_reporting', E_ALL & ~E_NOTICE);
+}
+
/*
Application Class
*/
-
-ob_start('ob_gzhandler');
-
class app {
private $_language_inc = 0;
diff --git a/interface/lib/config.inc.php b/interface/lib/config.inc.php
index fc94da8..40de432 100644
--- a/interface/lib/config.inc.php
+++ b/interface/lib/config.inc.php
@@ -45,6 +45,7 @@
//** Application
define('ISPC_APP_TITLE', 'ISPConfig');
define('ISPC_APP_VERSION', '3.0.2');
+define('DEVSYSTEM', 0);
//** Database
diff --git a/interface/web/dashboard/lib/custom_menu.inc.php b/interface/web/dashboard/lib/custom_menu.inc.php
index 247f3c1..8796023 100644
--- a/interface/web/dashboard/lib/custom_menu.inc.php
+++ b/interface/web/dashboard/lib/custom_menu.inc.php
@@ -51,6 +51,8 @@
$atom_url = "";
}
+$rows = array();
+
if( $atom_url != '' ) {
if(!isset($_SESSION['s']['rss_news'])) {
--
Gitblit v1.9.1