From 557a6343f9af17338cba809b18dce665507de537 Mon Sep 17 00:00:00 2001 From: predominant Date: Sat, 24 Apr 2010 10:51:56 +1000 Subject: [PATCH] Minor adjustment to ip validation variables. --- cake/libs/validation.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cake/libs/validation.php b/cake/libs/validation.php index 67a8f3f2b..c1c17e9c9 100644 --- a/cake/libs/validation.php +++ b/cake/libs/validation.php @@ -432,14 +432,14 @@ class Validation { */ public function ip($check, $type = 'both') { $type = strtolower($type); - $filterFlags = array(); + $flags = array(); if ($type === 'ipv4' || $type === 'both') { - $filterFlags[] = FILTER_FLAG_IPV4; + $flags[] = FILTER_FLAG_IPV4; } if ($type === 'ipv6' || $type === 'both') { - $filterFlags[] = FILTER_FLAG_IPV6; + $flags[] = FILTER_FLAG_IPV6; } - return (boolean)filter_var($check, FILTER_VALIDATE_IP, array('flags' => $filterFlags)); + return (boolean)filter_var($check, FILTER_VALIDATE_IP, array('flags' => $flags)); } /**