fix problem default category

This commit is contained in:
Your Name
2021-07-15 11:37:22 +03:00
parent e83b1df170
commit 58e24e1849

View File

@@ -36,11 +36,19 @@ function product_kuri($slug){
}
function category_kuri($category = 'knigi', $filter = 'all', $page = 1){
function category_kuri($category = '', $filter = 'all', $page = 1){
if (SUBSTATUS == 1)
if ($category == ''){
if (SUBSTATUS == 1){
$category = 'gazeta';
}
else {
$category = 'knigi';
}
}
$cats = api_cats();
$books = api_books_kuri($category, $filter, $page);