浏览代码

Correct spelling mistake

Mark Scherer 10 年之前
父节点
当前提交
9aedd6afe5
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Model/Behavior/ResetBehavior.php

+ 3 - 3
Model/Behavior/ResetBehavior.php

@@ -108,7 +108,7 @@ class ResetBehavior extends ModelBehavior {
 			set_time_limit(max($max, $count / $limit));
 		}
 
-		$modifed = 0;
+		$modified = 0;
 		while ($rows = $Model->find('all', $params)) {
 			foreach ($rows as $row) {
 				$Model->create();
@@ -136,14 +136,14 @@ class ResetBehavior extends ModelBehavior {
 				if (!$res) {
 					throw new CakeException(print_r($Model->validationErrors, true));
 				}
-				$modifed++;
+				$modified++;
 			}
 			$params['page']++;
 			if ($timeout) {
 				sleep((int)$timeout);
 			}
 		}
-		return $modifed;
+		return $modified;
 	}
 
 }