Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,14 @@ protected function getTypeOptionsFromManifest($component)
$request['sub'] = (string) $attributes->sub;
}

$o->request = array_filter($request, 'strlen');
$o->request = array_filter($request, function ($value) {
if (\is_array($value)) {
return !empty($value);
}

return \strlen($value);
});

$options[] = new CMSObject($o);

// Do not repeat the default view link (index.php?option=com_abc).
Expand Down