mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 03:08:53 +00:00
Fix series list issue
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user