From: Tim Düsterhus Date: Mon, 20 Apr 2015 12:26:54 +0000 (+0200) Subject: Break in UserAvatarAction::fetchRemoteAvatar() if download failed X-Git-Tag: 2.1.4~37^2~2^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4a723ec672dba78b8b9048103f67306b46ed3964;p=GitHub%2FWoltLab%2FWCF.git Break in UserAvatarAction::fetchRemoteAvatar() if download failed --- 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..4e04324f98 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/UserAvatarAction.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/UserAvatarAction.class.php @@ -183,6 +183,7 @@ class UserAvatarAction extends AbstractDatabaseObjectAction { if (!empty($filename)) { @unlink($filename); } + return; } // rescale avatar if required