Update Books class

This commit is contained in:
DariusIII
2018-05-14 16:01:59 +02:00
parent 64332fedf0
commit ab2243e00a
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -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);
+1
View File
@@ -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