fix on empty articles

This commit is contained in:
Ludovic CANDELLIER
2022-01-24 00:47:45 +01:00
parent 1fb9319bac
commit 9b6bac5545
5 changed files with 14 additions and 12 deletions

View File

@@ -25,8 +25,6 @@ class CategoryController extends Controller
$data['category'] = Categories::getFull($category_id);
$data['articles'] = Articles::getArticlesToSell($category_id);
$data['tags'] = TagGroups::getWithTagsAndCountOffers();
// dump($data);
// exit;
return view('Shop.shelve', $data);
}

View File

@@ -90,7 +90,7 @@ class Articles
}
// dump($data);
// exit;
return $data;
return $data ?? false;
}
public static function getArticlesWithOffers($category_id = false, $tags = false)