diff --git a/inc/lib.packman.php b/inc/lib.packman.php index 38281c0..b8d0d5f 100644 --- a/inc/lib.packman.php +++ b/inc/lib.packman.php @@ -58,22 +58,16 @@ class libPackman public static function modules($core, $modules, $type, $title) { + if (empty($modules) && !is_array($modules)) { + return null; + } + $type = $type == 'themes' ? 'themes' : 'plugins'; echo '
' . __('There are no modules.') . '
' . - '