From 3a322cdfce5189ad417540eeeec8d1e7c13b28af Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Mon, 2 Dec 2024 15:27:06 +0900 Subject: [PATCH] Fix warning in content widget if tab_type is null --- widgets/content/content.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/content/content.class.php b/widgets/content/content.class.php index 37e5594b8..db5b8d862 100644 --- a/widgets/content/content.class.php +++ b/widgets/content/content.class.php @@ -711,7 +711,7 @@ class content extends WidgetHandler $widget_info->markup_type = $args->markup_type; // If it is a tab type, list up tab items and change key value(module_srl) to index - if($args->tab_type != 'none' && $args->tab_type) + if (!empty($args->tab_type) && $args->tab_type != 'none') { $tab = array(); foreach($args->mid_lists as $module_srl => $mid)