From 963f1ca4493667877825eabb8971c4a6e19dc1fb Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 10 Jun 2012 20:21:59 -0400 Subject: [PATCH] Don't |= with null. --- lib/Cake/Utility/Validation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Utility/Validation.php b/lib/Cake/Utility/Validation.php index ab46a84dcc3..1e19e2b8f8a 100644 --- a/lib/Cake/Utility/Validation.php +++ b/lib/Cake/Utility/Validation.php @@ -467,7 +467,7 @@ public static function extension($check, $extensions = array('gif', 'jpeg', 'png */ public static function ip($check, $type = 'both') { $type = strtolower($type); - $flags = null; + $flags = 0; if ($type === 'ipv4' || $type === 'both') { $flags |= FILTER_FLAG_IPV4; }