diff --git a/lib/Backend/UserBackend.php b/lib/Backend/UserBackend.php index 370d45d..842c1bc 100644 --- a/lib/Backend/UserBackend.php +++ b/lib/Backend/UserBackend.php @@ -261,13 +261,13 @@ final class UserBackend extends ABackend implements if ($user instanceof User) { $this->cache->set($cacheKey, $user); - // avoid recursion as the action may very well call into the UserManager again ... - $actions = $this->actions; - $this->actions = []; - foreach ($this->actions as $action) { + // avoid recursion as the action may very well call into the UserManager again ... + $actions = $this->actions; + $this->actions = []; + foreach ($actions as $action) { $action->doAction($user); } - $this->actions = $actions; + $this->actions = $actions; } return $user;