From 89258793557c75ab41801755ac7ccbfc654969a0 Mon Sep 17 00:00:00 2001 From: fowr <89118232+perdedora@users.noreply.github.com> Date: Sun, 12 Jan 2025 10:17:45 -0300 Subject: [PATCH] proper fix instead of using numeric array in rebuild themes --- inc/functions/theme.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/functions/theme.php b/inc/functions/theme.php index e4cb1134..953c8e79 100644 --- a/inc/functions/theme.php +++ b/inc/functions/theme.php @@ -14,7 +14,7 @@ function rebuild_themes(string $action, $boardname = false): void { // OK, we already have themes loaded } else { $query = query("SELECT `theme` FROM ``theme_settings`` WHERE `name` IS NULL AND `value` IS NULL") or error(db_error()); - $themes = $query->fetchAll(\PDO::FETCH_NUM); + $themes = $query->fetchAll(\PDO::FETCH_ASSOC); \Cache::set("themes", $themes); } @@ -31,10 +31,10 @@ function rebuild_themes(string $action, $boardname = false): void { } if (PHP_SAPI === 'cli') { - echo "Rebuilding theme ".$theme[0]."... "; + echo "Rebuilding theme ".$theme['theme']."... "; } - rebuild_theme($theme[0], $action, $boardname); + rebuild_theme($theme['theme'], $action, $boardname); if (PHP_SAPI === 'cli') { echo "done\n";