From 299ffb90bebe62d76a85eb16fa8ed5888421504e Mon Sep 17 00:00:00 2001 From: Menno Dekker Date: Tue, 18 Mar 2014 11:30:57 +0100 Subject: [PATCH] Fixed #8868: AuditLog plugin : Can't create/delete user --- plugins/AuditLog/AuditLog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)