Browse Source

Fix bug in eloquent model.

Taylor Otwell 12 years ago
parent
commit
43212f8505
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/database/eloquent/model.php

+ 1 - 1
laravel/database/eloquent/model.php

@@ -404,7 +404,7 @@ abstract class Model {
 	 */
 	public function changed($attribute)
 	{
-		array_get($this->attributes, $attribute) !== array_get($this->original, $attribute);
+		return array_get($this->attributes, $attribute) !== array_get($this->original, $attribute);
 	}
 
 	/**