From 838ce3a7a163502fb002f26645e70b3ff5d7294f Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 10 Jul 2023 18:44:12 +0200 Subject: always use etext() to support {U(/foo)} feature even in absence of values --- auto_prepend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'auto_prepend.php') diff --git a/auto_prepend.php b/auto_prepend.php index 8d0a94e..d961a7b 100644 --- a/auto_prepend.php +++ b/auto_prepend.php @@ -74,7 +74,7 @@ function T($label, $language = null, $values = null) if (is_array($language)) # Need to swap params? list($language, $values) = array($values, $language); - return is_array($values) ? $GLOBALS['it_text']->etext($label, array_map(array("it_html", "Q"), $values), $language) : $GLOBALS['it_text']->text($label, $language); + return $GLOBALS['it_text']->etext($label, array_map(array("it_html", "Q"), (array)$values), $language); } /** -- cgit v1.2.3