fix: [user:beforeSave] Make sure variable is initialized

pull/121/head
Sami Mokaddem 2022-12-08 10:19:28 +01:00
parent f24d6c2cc8
commit c61c16c83c
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}