fix: Empty App Links

The return value of the function caused a warning
in header.inc.php:42 if no additional links were set.

header.inc.php is the only caller of this function,
thus it is safe to return an empty array here.
This commit is contained in:
Paul Sütterlin 2025-07-26 01:08:16 +00:00
parent 6b8e981bdc
commit 3d5b57889a

View File

@ -293,7 +293,7 @@ function customize($_action, $_item, $_data = null) {
} }
if (empty($app_links)){ if (empty($app_links)){
return false; return [];
} }
// convert from old style // convert from old style