From cee1e67d3d9fd8e546033cf145cc78eeec47b744 Mon Sep 17 00:00:00 2001 From: slawkens Date: Sat, 11 Nov 2023 15:02:38 +0100 Subject: [PATCH] Fix highscores_ids_hidden --- system/libs/Settings.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/system/libs/Settings.php b/system/libs/Settings.php index bfa85237..e77de0b3 100644 --- a/system/libs/Settings.php +++ b/system/libs/Settings.php @@ -249,6 +249,10 @@ class Settings implements ArrayAccess } else if($setting['type'] === 'textarea') { + if (is_array($settingsDb[$key])) { + $settingsDb[$key] = implode(',', $settingsDb[$key]); + } + $value = ($settingsDb[$key] ?? ($setting['default'] ?? '')); $valueWithSpaces = array_map('trim', preg_split('/\r\n|\r|\n/', trim($value))); $rows = count($valueWithSpaces);