From e7cd3f37eb2fe25d47f443793aecf175c9c7616b Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Thu, 8 Dec 2022 22:56:52 +0100 Subject: [PATCH] use dc methods for widget settings --- _public.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_public.php b/_public.php index bb3c846..5f1b08a 100644 --- a/_public.php +++ b/_public.php @@ -23,8 +23,7 @@ function lastBlogUpdateWidgetPublic($w) } # Nothing to display - if ($w->homeonly == 1 && dcCore::app()->url->type != 'default' - || $w->homeonly == 2 && dcCore::app()->url->type == 'default' + if (!$w->checkHomeOnly(dcCore::app()->url->type) || !$w->blog_show && !$w->post_show && !$w->comment_show && !$w->media_show || !$w->blog_text && !$w->post_text && !$w->comment_text && !$w->media_text) { return null;