This commit is contained in:
Your Name
2021-07-19 16:26:58 +03:00
parent 83048eb2b5
commit 9b75937754

View File

@@ -80,7 +80,7 @@ function api_books_kuri($category = 'knigi', $filter = 'all', $page = 1){
if (isset($db_count['count'])) if (isset($db_count['count']))
$count = $db_count['count']; $count = $db_count['count'];
$sql_books = "SELECT * FROM `price` $where ORDER BY `price_id` DESC LIMIT $limit $offset_str"; $sql_books = "SELECT * FROM `price` $where AND `active` = 1 ORDER BY `price_id` DESC LIMIT $limit $offset_str";
$books = db_get($sql_books); $books = db_get($sql_books);
if (!isset($books['error'])) { if (!isset($books['error'])) {