From 07ee77dc7d9ee387f551bdfb8fe0a25fd0e00340 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 16 Feb 2017 15:45:52 -0800 Subject: [PATCH] Hide e107 object unless developing. --- e107_handlers/db_debug_class.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/e107_handlers/db_debug_class.php b/e107_handlers/db_debug_class.php index 3e459bab8..ae6413392 100644 --- a/e107_handlers/db_debug_class.php +++ b/e107_handlers/db_debug_class.php @@ -698,10 +698,16 @@ class e107_db_debug { SQL Language ".$sql->mySQLlanguage." +"; + if($_SERVER['E_DEV'] == 'true') + { + $text .= " + +
".htmlspecialchars(print_r($e107,TRUE))."
+ "; + } - -
".htmlspecialchars(print_r($e107,TRUE))."
- + $text .="

Session