From 19eb3cc0d3b1310b8e0da224d87816060f989641 Mon Sep 17 00:00:00 2001 From: grandeljay Date: Fri, 8 Sep 2023 09:19:07 +0200 Subject: [PATCH] fix: access to private property --- src/classes/wishthis/Page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/wishthis/Page.php b/src/classes/wishthis/Page.php index cab33829..138eefe7 100644 --- a/src/classes/wishthis/Page.php +++ b/src/classes/wishthis/Page.php @@ -399,7 +399,7 @@ class Page if ( in_array($_SERVER['HTTP_HOST'], $wishthis_hosts, true) - && (true === $user->advertisements || $CrawlerDetect->isCrawler()) + && (true === $user->getAdvertisements() || $CrawlerDetect->isCrawler()) ) { ?>