From ecbd8cbebe906364184c19ba12efcc716e1cf342 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Fri, 25 Jan 2019 14:56:27 +0100 Subject: [PATCH] Small change in Video model --- Changelog | 1 + app/Models/Video.php | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Changelog b/Changelog index 65f12f772..21eb4240a 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2019-01-25 DariusIII + * Chg: Small change in Video model * Chg: Update Console class * Chg: Small optimizations in code, use compact where applicable * Chg: Add config/nntmux_nntp.php and use the config in NNTP class diff --git a/app/Models/Video.php b/app/Models/Video.php index be5da8bab..ef9f33556 100644 --- a/app/Models/Video.php +++ b/app/Models/Video.php @@ -145,10 +145,8 @@ class Video extends Model */ public static function getSeriesList($uid, $letter = '', $showname = ''): array { - if ($letter !== '') { - if ($letter === '0-9') { - $letter = '[0-9]'; - } + if (($letter !== '') && $letter === '0-9') { + $letter = '[0-9]'; } $qry = self::query()