diff --git a/src/LaravelBook/Ardent/Ardent.php b/src/LaravelBook/Ardent/Ardent.php index 70bd61a..123416b 100644 --- a/src/LaravelBook/Ardent/Ardent.php +++ b/src/LaravelBook/Ardent/Ardent.php @@ -791,7 +791,7 @@ public function updateUniques(array $rules = array(), Closure $afterSave = null ) { // Only automatically modify rules if there are none coming in - if (count($rules == 0)) { + if (count($rules) == 0) { $rules = $this->buildUniqueExclusionRules(); }