BUGFIX Deprecation class throws notice on PHP 5.2

Checks on constants must be within quotes.
This commit is contained in:
Stig Lindqvist 2011-10-28 02:09:28 +02:00
parent 8f96ea7c9c
commit 3c5fd14f38

View File

@ -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 .= ".";