From 6f30ed7a79e2e8eb2dc083c1b7a4aa81663fbdde Mon Sep 17 00:00:00 2001 From: Austin White Date: Wed, 31 Oct 2012 14:43:53 -0700 Subject: [PATCH] fixed issue #1206 --- laravel/validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/validator.php b/laravel/validator.php index ab446860..5de7ac01 100644 --- a/laravel/validator.php +++ b/laravel/validator.php @@ -89,7 +89,7 @@ public function __construct($attributes, $rules, $messages = array()) $this->rules = $rules; $this->messages = $messages; - $this->attributes = $attributes; + $this->attributes = (is_object($attributes)) ? get_object_vars($attributes) : $attributes; } /**