Fix thumbnail for 96px x 96px avatars
authorMatthias Schmidt <gravatronics@live.com>
Mon, 23 Feb 2015 19:09:36 +0000 (20:09 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 23 Feb 2015 19:09:36 +0000 (20:09 +0100)
wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php

index bab0ec7397c2716b0f650526e6d74e3a4c42afb4..1882a7a375c4806b93a25e57124eded24b91f498 100644 (file)
@@ -68,7 +68,7 @@ class UserAvatar extends DatabaseObject implements IUserAvatar {
                        
                        case 48:
                        case 64:
-                               if ($this->width >= 96) {
+                               if ($this->width > 96 && $this->height > 96) {
                                        $size = 96;
                                }
                                else {