Break in UserAvatarAction::fetchRemoteAvatar() if download failed
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 20 Apr 2015 12:26:54 +0000 (14:26 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 20 Apr 2015 12:26:54 +0000 (14:26 +0200)
wcfsetup/install/files/lib/data/user/avatar/UserAvatarAction.class.php

index 78b7ea1b8e3076a9737464dae23aa4ce23c86b24..4e04324f98039560c91082a21df96dfb935b4667 100644 (file)
@@ -183,6 +183,7 @@ class UserAvatarAction extends AbstractDatabaseObjectAction {
                        if (!empty($filename)) {
                                @unlink($filename);
                        }
+                       return;
                }
                
                // rescale avatar if required