Skip to content
This repository
Browse code

BUGFIX Deprecation class throws notice on PHP 5.2

Checks on constants must be within quotes.
  • Loading branch information...
commit 3c5fd14f38d711daa02f554696b1e153929a43b9 1 parent 8f96ea7
Stig Lindqvist authored October 28, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  dev/Deprecation.php
2  dev/Deprecation.php
@@ -133,7 +133,7 @@ public static function notice($atVersion, $string = '') {
133 133
 
134 134
 			// Get the level to raise the notice as
135 135
 			$level = self::$notice_level;
136  
-			if (!$level) $level = defined(E_USER_DEPRECATED) ? E_USER_DEPRECATED : E_USER_NOTICE;
  136
+			if (!$level) $level = defined('E_USER_DEPRECATED') ? E_USER_DEPRECATED : E_USER_NOTICE;
137 137
 
138 138
 			// Then raise the notice
139 139
 			if(substr($string,-1) != '.') $string .= ".";

0 notes on commit 3c5fd14

Please sign in to comment.
Something went wrong with that request. Please try again.