From 705cc92056a2a46bb812dbe577a41fb8d089bfc2 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Fri, 23 Nov 2018 12:36:23 +0100 Subject: [PATCH] Update getMyMoviesRSS function --- Blacklight/http/RSS.php | 4 ++-- Changelog | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Blacklight/http/RSS.php b/Blacklight/http/RSS.php index 631894bf4..a9bac4780 100755 --- a/Blacklight/http/RSS.php +++ b/Blacklight/http/RSS.php @@ -193,7 +193,7 @@ class RSS extends Capabilities * @return \Illuminate\Database\Eloquent\Builder[]|\Illuminate\Database\Eloquent\Collection|mixed * @throws \Exception */ - public function getMyMoviesRss($limit = 0, $userID = 0, array $excludedCats = []) + public function getMyMoviesRss($limit, $userID = 0, array $excludedCats = []) { $sql = sprintf( " @@ -229,7 +229,7 @@ class RSS extends Capabilities Category::MOVIE_ROOT, Category::MOVIE_OTHER, $this->releases->showPasswords(), - $limit > 0 ? ' LIMIT '.($limit > 100 ? 100 : $limit).' OFFSET 0' : '' + ! empty($limit) ? sprintf(' LIMIT %d OFFSET 0', $limit > 100 ? 100 : $limit) : '' ); $expiresAt = now()->addMinutes(config('nntmux.cache_expiry_medium')); diff --git a/Changelog b/Changelog index 35bd5cee6..44e66af66 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-11-23 DariusIII + * Chg: Update getMyMoviesRSS function * Fix: Fix empty email on profile save * Fix: Fix MyMovies RSS feed 2018-11-22 DariusIII