From f3d1d915010c49b11c2c48a4eaa34b6afcf9a466 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sun, 4 Jan 2015 00:45:20 +0100 Subject: [PATCH] Fixed multiple issues in UserAvatarAction::fetchRemoteAvatar() --- .../files/lib/data/user/avatar/UserAvatarAction.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/lib/data/user/avatar/UserAvatarAction.class.php b/wcfsetup/install/files/lib/data/user/avatar/UserAvatarAction.class.php index 78b7ea1b8e..dccea951ee 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/UserAvatarAction.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/UserAvatarAction.class.php @@ -239,13 +239,13 @@ class UserAvatarAction extends AbstractDatabaseObjectAction { // delete old avatar if ($this->parameters['userEditor']->avatarID) { - $action = new UserAvatarAction(array(WCF::getUser()->avatarID), 'delete'); + $action = new UserAvatarAction(array($this->parameters['userEditor']->avatarID), 'delete'); $action->executeAction(); - - // reset user storage - UserStorageHandler::getInstance()->reset(array(WCF::getUser()->userID), 'avatar'); } } + + // reset user storage + UserStorageHandler::getInstance()->reset(array($this->parameters['userEditor']->userID), 'avatar'); } /** -- 2.20.1