Browse Source

Merge pull request #17 from alecho/patch-2

flips strict comparison as per coding standards
Mark 12 years ago
parent
commit
3059816c8e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Model/Behavior/SoftDeleteBehavior.php

+ 1 - 1
Model/Behavior/SoftDeleteBehavior.php

@@ -96,7 +96,7 @@ class SoftDeleteBehavior extends ModelBehavior {
 			$fields = $this->_normalizeFields($model);
 
 			foreach ($fields as $flag => $date) {
-				if (true === $runtime || $flag === $runtime) {
+				if ($runtime === true || $flag === $runtime) {
 					if (!in_array($flag, $conditions) && !in_array($model->name . '.' . $flag, $conditions)) {
 						$query['conditions'][$model->alias . '.' . $flag] = false;
 					}