fix: [user:beforeSave] Make sure variable is initialized
parent
f24d6c2cc8
commit
c61c16c83c
|
@ -69,6 +69,7 @@ class UsersTable extends AppTable
|
|||
|
||||
public function beforeSave(EventInterface $event, EntityInterface $entity, ArrayObject $options)
|
||||
{
|
||||
$success = true;
|
||||
if (!$entity->isNew()) {
|
||||
$success = $this->handleUserUpdateRouter($entity);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue