diff --git a/app_model.php b/app_model.php index f246e69..3838982 100644 --- a/app_model.php +++ b/app_model.php @@ -169,7 +169,7 @@ class AppModel extends Model { if (isset($this->data[$alias][$field])) { /* pr("Fix Date for '$alias'.'$field'; current value = " . */ /* "'{$this->data[$alias][$field]}'"); */ - if ($this->data[$alias]['stamp'] === 'CURRENT_TIMESTAMP') + if ($this->data[$alias][$field] === 'CURRENT_TIMESTAMP') // Seems CakePHP is broken for the default timestamp. // It tries to automagically set the value to CURRENT_TIMESTAMP // which is wholly rejected by MySQL. Just put it back to NULL