mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-04-08 08:27:38 -04:00
Reduce undeeded use of elvis operator ?: (#7204)
This commit is contained in:
committed by
GitHub
parent
3280ec617f
commit
5368f38753
@@ -36,9 +36,9 @@ class FreshRSS_javascript_Controller extends FreshRSS_ActionController {
|
||||
public function nbUnreadsPerFeedAction(): void {
|
||||
header('Content-Type: application/json; charset=UTF-8');
|
||||
$catDAO = FreshRSS_Factory::createCategoryDao();
|
||||
$this->view->categories = $catDAO->listCategories(true, false) ?: [];
|
||||
$this->view->categories = $catDAO->listCategories(prePopulateFeeds: true, details: false);
|
||||
$tagDAO = FreshRSS_Factory::createTagDao();
|
||||
$this->view->tags = $tagDAO->listTags(true) ?: [];
|
||||
$this->view->tags = $tagDAO->listTags(precounts: true);
|
||||
}
|
||||
|
||||
//For Web-form login
|
||||
|
||||
Reference in New Issue
Block a user