Skip to content

Commit

Permalink
Fixed issue #8551: Can't add a new user if AuditLog plugin is activated
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jan 17, 2014
1 parent aa1806c commit d667c73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/AuditLog/AuditLog.php
Expand Up @@ -104,16 +104,16 @@ public function beforeParticipantDelete()
*/
public function beforeUserSave()
{
$oUserData=$this->getEvent()->getSender();
$oUserData=$this->getEvent()->get('model');
$oCurrentUser=$this->api->getCurrentUser();
$oOldUser=$this->api->getUser($oUserData->uid);
if (!$oOldUser)
if (!isset($oUserData->uid))
{
$sAction='create';
$aOldValues=array();
}
else
{
$oOldUser=$this->api->getUser($oUserData->uid);
$sAction='update';
$aOldValues=$oOldUser->getAttributes();
}
Expand Down

0 comments on commit d667c73

Please sign in to comment.