diff --git a/_widgets.php b/_widgets.php index bf1c493..99028c2 100644 --- a/_widgets.php +++ b/_widgets.php @@ -75,6 +75,10 @@ class postWidgetTextWidget $pwt = new postWidgetText($core); $rs = $pwt->getWidgets(['post_id' => $_ctx->posts->post_id]); + if ($rs->isEmpty()) { + return null; + } + if ('' != $rs->option_title) { $title = $rs->option_title; }