Skip unread article values for guests
authorJoshua Rüsweg <josh@bastelstu.be>
Wed, 29 Aug 2018 18:45:57 +0000 (20:45 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Wed, 29 Aug 2018 18:45:57 +0000 (20:45 +0200)
See #2642

wcfsetup/install/files/lib/data/article/ViewableArticle.class.php

index 7b74c1cc27264e5199aac2ff6b65d44623b75a81..e41d226e07b80ba203a49bab21884b47e5dc5b15 100644 (file)
@@ -287,6 +287,9 @@ class ViewableArticle extends DatabaseObjectDecorator {
                                        }
                                }
                        }
+                       else {
+                               self::$unreadArticlesByCategory[$articleCategoryID] = 0;
+                       }
                }
                
                return self::$unreadArticlesByCategory[$articleCategoryID];