mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Fix highscores_ids_hidden
This commit is contained in:
parent
c81861d8c8
commit
cee1e67d3d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user