Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
don't save users from themselves
If the behavior config is changed such that it triggers an undefined
index error - don't silently swallow that
  • Loading branch information
AD7six committed Nov 4, 2013
1 parent 902f3eb commit 510574c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Cake/Model/Behavior/TimestampBehavior.php
Expand Up @@ -77,9 +77,6 @@ public function __construct(Table $table, array $settings = []) {
public function handleEvent(Event $event, Entity $entity) {
$eventName = $event->name();
$settings = $this->settings();
if (!isset($settings['events'][$eventName])) {
return true;
}

$new = $entity->isNew() !== false;

Expand Down

0 comments on commit 510574c

Please sign in to comment.