diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index 8b0004e6014..4f2fc84c5e4 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -970,7 +970,7 @@ protected function _createLinks() { foreach ($this->{$type} as $i => $className) { $className = trim($className); - unset ($this->{$type}[$i]); + unset($this->{$type}[$i]); $this->{$type}[$className] = array(); } } @@ -980,7 +980,7 @@ protected function _createLinks() { $plugin = null; if (is_numeric($assoc)) { - unset ($this->{$type}[$assoc]); + unset($this->{$type}[$assoc]); $assoc = $value; $value = array(); @@ -1156,7 +1156,7 @@ public function set($one, $two = null) { foreach ($fieldSet as $fieldName => $fieldValue) { if (isset($this->validationErrors[$fieldName])) { - unset ($this->validationErrors[$fieldName]); + unset($this->validationErrors[$fieldName]); } if ($modelName === $this->alias) {