Skip to content

Commit

Permalink
ensure that only string is sent to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
live627 committed Dec 30, 2024
1 parent ef862f1 commit bc51997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bc51997

Please sign in to comment.