From 28a880b5b53023ab930b8e86fd2d52da6292b58e Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 5 Jan 2013 16:24:51 -0600 Subject: [PATCH] Use array_key_exists in validator. --- laravel/validator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laravel/validator.php b/laravel/validator.php index 8dbc5ca8..89cbba53 100644 --- a/laravel/validator.php +++ b/laravel/validator.php @@ -317,7 +317,7 @@ class Validator { { $other = $parameters[0]; - return isset($this->attributes[$other]) and $value == $this->attributes[$other]; + return array_key_exists($other, $this->attributes) and $value == $this->attributes[$other]; } /** @@ -332,7 +332,7 @@ class Validator { { $other = $parameters[0]; - return isset($this->attributes[$other]) and $value != $this->attributes[$other]; + return array_key_exists($other, $this->attributes) and $value != $this->attributes[$other]; } /**