Browse Source

Don't |= with null.

mark_story 14 years ago
parent
commit
963f1ca449
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Utility/Validation.php

+ 1 - 1
lib/Cake/Utility/Validation.php

@@ -467,7 +467,7 @@ class Validation {
  */
 	public static function ip($check, $type = 'both') {
 		$type = strtolower($type);
-		$flags = null;
+		$flags = 0;
 		if ($type === 'ipv4' || $type === 'both') {
 			$flags |= FILTER_FLAG_IPV4;
 		}