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