From bc5199746556fa73968298dc2d9602fddb93517f Mon Sep 17 00:00:00 2001 From: John Rayes Date: Mon, 30 Dec 2024 15:19:22 -0700 Subject: [PATCH] ensure that only string is sent to debug --- Sources/Theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Theme.php b/Sources/Theme.php index a0644e92ab..9dd1f88648 100644 --- a/Sources/Theme.php +++ b/Sources/Theme.php @@ -425,7 +425,7 @@ public static function loadSubTemplates(): void public static function loadSubTemplate(string|array $sub_template_name, bool|string $fatal = false): void { if (!empty(Config::$db_show_debug)) { - Utils::$context['debug']['sub_templates'][] = $sub_template_name; + Utils::$context['debug']['sub_templates'][] = is_array($sub_template_name) ? $sub_template_name[0] : $sub_template_name; } // Figure out what the template function is named.