Fix series list issue

This commit is contained in:
DariusIII
2026-02-18 11:17:46 +01:00
parent 523cf6cece
commit 69f840a43e
+4 -2
View File
@@ -277,9 +277,11 @@ class SeriesController extends BasePageController
foreach ($masterserieslist as $s) {
if (preg_match('/^[0-9]/', $s['title'])) {
$thisrange = '0-9';
} else {
preg_match('/([A-Z]).*/i', $s['title'], $hits);
} elseif (preg_match('/([A-Z]).*/i', $s['title'], $hits)) {
$thisrange = strtoupper($hits[1]);
} else {
// Handle titles that don't start with a letter or number
$thisrange = '#';
}
$serieslist[$thisrange][] = $s;
}