Don't |= with null.

This commit is contained in:
mark_story 2012-06-10 20:21:59 -04:00
parent b2e82871f1
commit 963f1ca449

View file

@ -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;
}