From 2e0517bcab6268b48c473ea9cd01d37f603d89dd Mon Sep 17 00:00:00 2001
From: Peter Philipp <peter.philipp@cando-image.com>
Date: Tue, 26 Oct 2010 19:25:36 +0200
Subject: [PATCH] Use E_DEPRECATED only conditionally

---
 devel.module |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/devel.module b/devel.module
index 854194f..4e85d45 100644
--- a/devel.module
+++ b/devel.module
@@ -567,7 +567,7 @@ function backtrace_error_handler($errno, $message, $filename, $line) {
   // Don't respond to the error if it was suppressed with a '@'
   if (error_reporting() == 0) return;
 
-  if ($errno & (E_ALL ^ E_NOTICE ^ E_DEPRECATED)) {
+  if ($errno & (E_ALL ^ E_NOTICE) || (defined('E_DEPRECATED') && $errno & (E_DEPRECATED))) {
     // We can't use the PHP E_* constants here as not all versions of PHP have all
     // the constants defined, so for consistency, we just use the numeric equivelant.
     $types = array(
-- 
1.7.0.2.msysgit.0

