diff --git a/plugins/AuditLog/AuditLog.php b/plugins/AuditLog/AuditLog.php index 52fb8b2c95f..6de3abfe352 100644 --- a/plugins/AuditLog/AuditLog.php +++ b/plugins/AuditLog/AuditLog.php @@ -145,7 +145,7 @@ public function beforeUserSave() public function beforeUserDelete() { - $oUserData=$this->getEvent()->getSender(); + $oUserData=$this->getEvent()->get('model'); $oCurrentUser=$this->api->getCurrentUser(); $oOldUser=$this->api->getUser($oUserData->uid); if ($oOldUser)