mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Don't |= with null.
This commit is contained in:
parent
b2e82871f1
commit
963f1ca449
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue