diff --git a/cake/libs/controller/controller.php b/cake/libs/controller/controller.php index 2077e9672..ba82684bb 100644 --- a/cake/libs/controller/controller.php +++ b/cake/libs/controller/controller.php @@ -926,7 +926,7 @@ class Controller extends Object { $newDate = null; if ('datetime' == $field['type'] && $useNewDate) { $newDate = "{$_year}-{$_month}-{$_day}:{$_hour}:{$_min}:{$_sec}"; - } else if ('date' == $field['type'] && $useNewDate)) { + } else if ('date' == $field['type'] && $useNewDate) { $newDate = "{$_year}-{$_month}-{$_day}"; } else if ('time' == $field['type'] && $useNewDate) { $newDate = "{$_hour}:{$_min}:{$_sec}";