From 3c5fd14f38d711daa02f554696b1e153929a43b9 Mon Sep 17 00:00:00 2001 From: Stig Lindqvist Date: Fri, 28 Oct 2011 02:09:28 +0200 Subject: [PATCH] BUGFIX Deprecation class throws notice on PHP 5.2 Checks on constants must be within quotes. --- dev/Deprecation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/Deprecation.php b/dev/Deprecation.php index ab1fc9569..274663d2a 100644 --- a/dev/Deprecation.php +++ b/dev/Deprecation.php @@ -133,7 +133,7 @@ class Deprecation { // Get the level to raise the notice as $level = self::$notice_level; - if (!$level) $level = defined(E_USER_DEPRECATED) ? E_USER_DEPRECATED : E_USER_NOTICE; + if (!$level) $level = defined('E_USER_DEPRECATED') ? E_USER_DEPRECATED : E_USER_NOTICE; // Then raise the notice if(substr($string,-1) != '.') $string .= ".";