diff --git a/class2.php b/class2.php
index 8a4fb6341..01cfe524c 100644
--- a/class2.php
+++ b/class2.php
@@ -9,9 +9,9 @@
* General purpose file
*
* $Source: /cvs_backup/e107_0.8/class2.php,v $
-* $Revision: 1.110 $
-* $Date: 2009-07-19 11:44:26 $
-* $Author: marj_nl_fr $
+* $Revision: 1.111 $
+* $Date: 2009-07-21 14:20:12 $
+* $Author: e107coders $
*
*/
//
@@ -1999,10 +1999,10 @@ class error_handler
return;
}
- if ((isset($_SERVER['QUERY_STRING']) && strpos($_SERVER['QUERY_STRING'], 'debug=') !== FALSE) || isset($_COOKIE['e107_debug_level']))
+ if ((isset($_SERVER['QUERY_STRING']) && strpos($_SERVER['QUERY_STRING'], 'debug=') !== FALSE) || isset($_COOKIE['e107_debug_level']) && strpos($_SERVER['QUERY_STRING'], 'debug=-') !== TRUE )
{
- $this->debug = true;
- error_reporting(E_ALL);
+ $this->debug = true;
+ error_reporting(E_ALL);
}
else
{
@@ -2054,7 +2054,8 @@ class error_handler
function return_errors()
{
$index = 0; $colours[0] = "#C1C1C1"; $colours[1] = "#B6B6B6";
- $ret = "
\n";
+ $ret = "";
+
if (E107_DBG_ERRBACKTRACE)
{
foreach ($this->errors as $key => $value)
@@ -2071,8 +2072,8 @@ class error_handler
$ret .= "\n";
}
}
- $ret .= '
';
- return $ret;
+
+ return ($ret) ? "" : FALSE;
}
function trigger_error($information, $level)
diff --git a/e107_handlers/db_debug_class.php b/e107_handlers/db_debug_class.php
index 2d9ae7d0d..b884f9aba 100644
--- a/e107_handlers/db_debug_class.php
+++ b/e107_handlers/db_debug_class.php
@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/db_debug_class.php,v $
-| $Revision: 1.10 $
-| $Date: 2009-07-12 02:29:24 $
+| $Revision: 1.11 $
+| $Date: 2009-07-21 14:20:13 $
| $Author: e107coders $
+----------------------------------------------------------------------------+
*/
@@ -625,13 +625,21 @@ global $error_handler,$e107_Clean_Exit,$In_e107_Footer,$ADMIN_DIRECTORY;
while (ob_get_level() > 0) {
ob_end_flush();
}
- if (isset($error_handler))
- {
- echo "
PHP Errors:
".$error_handler->return_errors()."\n";
- } else {
- echo "e107 Shutdown while no error_handler available!";
+
+ if (isset($error_handler) )
+ {
+ if($error_handler->return_errors())
+ {
+ echo "
PHP Errors:
".$error_handler->return_errors()."\n";
+ echo "