Fix typo in avatar condition in UserRebuildDataWorker
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / worker / UserRebuildDataWorker.class.php
index ea1b517482843b3d63f8233ad008b327750d4a67..f55276b0ce9b403cdbd3332cb16de09e075e5acb 100644 (file)
@@ -220,7 +220,7 @@ class UserRebuildDataWorker extends AbstractRebuildDataWorker
                 [
                     UserAvatar::AVATAR_SIZE,
                     UserAvatar::AVATAR_SIZE,
-                    1,
+                    0,
                     "gif",
                 ]
             );
@@ -271,6 +271,7 @@ class UserRebuildDataWorker extends AbstractRebuildDataWorker
                     $width = $height = UserAvatar::AVATAR_SIZE;
                 }
 
+                $editor->deleteLegacyThumbnails();
                 $editor->createAvatarVariant();
 
                 $editor->update([