From 5e1b9379aed418509c7012bd31cdfade43deda5b Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 17 Jul 2014 23:14:02 +0200 Subject: [PATCH] Fix issue with dismissed notices for registered users --- wcfsetup/install/files/lib/data/notice/Notice.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/notice/Notice.class.php b/wcfsetup/install/files/lib/data/notice/Notice.class.php index 8e4f7cf6ad..8465a801f1 100644 --- a/wcfsetup/install/files/lib/data/notice/Notice.class.php +++ b/wcfsetup/install/files/lib/data/notice/Notice.class.php @@ -83,7 +83,7 @@ class Notice extends DatabaseObject implements IRouteController { } else { $dismissedNoticeIDs = @unserialize($dismissedNotices[WCF::getUser()->userID]); - $this->isDismissed = isset($dismissedNoticeIDs[$this->noticeID]); + $this->isDismissed = in_array($this->noticeID, $dismissedNoticeIDs); } } else { -- 2.20.1