From ab2243e00a501cb9019e732eeb5e14f9c67c2f96 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Mon, 14 May 2018 16:01:59 +0200 Subject: [PATCH] Update Books class --- Blacklight/Books.php | 4 ++-- Changelog | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Blacklight/Books.php b/Blacklight/Books.php index 70feec9b5..9c35bc00d 100755 --- a/Blacklight/Books.php +++ b/Blacklight/Books.php @@ -223,12 +223,12 @@ class Books $order[0], $order[1] ); - $return = Cache::get(md5($sql)); + $return = Cache::get(md5($sql.$page)); if ($return !== null) { return $return; } $return = DBFacade::select($sql); - if (! empty($return)) { + if (\count($return) > 0) { $return['_totalcount'] = $books[0]->total ?? 0; } Cache::put(md5($sql.$page), $return, $expiresAt); diff --git a/Changelog b/Changelog index b8eb6757f..7104cff3f 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-05-14 DariusIII + * Chg: Update Books class * Fix: Use DBFacade for select query * Fix: Fix couple of console problems * Fix: Use proper parameter to display release names in movies and XXX pages