From 69f840a43e655e50f982d712ab2d3d97377c18a7 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Wed, 18 Feb 2026 11:17:46 +0100 Subject: [PATCH] Fix series list issue --- app/Http/Controllers/SeriesController.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/SeriesController.php b/app/Http/Controllers/SeriesController.php index 2387bb3a2..9c1809d1e 100644 --- a/app/Http/Controllers/SeriesController.php +++ b/app/Http/Controllers/SeriesController.php @@ -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; }