diff --git a/libraries/cms/module/helper.php b/libraries/cms/module/helper.php index 45b947374fc7a..f1564ae9c0dcd 100644 --- a/libraries/cms/module/helper.php +++ b/libraries/cms/module/helper.php @@ -87,7 +87,8 @@ public static function &getModules($position) for ($i = 0; $i < $total; $i++) { - if ($modules[$i]->position == $position) + // Only add the module if it is in the correct position and has content + if ($modules[$i]->position == $position && !empty($modules[$i]->content)) { $result[] = &$modules[$i]; }