User avatar thumbnail condition improvement
authorMatthias Schmidt <gravatronics@live.com>
Mon, 23 Feb 2015 20:10:32 +0000 (21:10 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 23 Feb 2015 20:10:32 +0000 (21:10 +0100)
wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php

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