mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-21 19:11:30 +00:00
fix include_empty to use bool type
This commit is contained in:
@@ -125,7 +125,7 @@ class API extends Handler {
|
|||||||
function getCategories() {
|
function getCategories() {
|
||||||
$unread_only = sql_bool_to_bool($_REQUEST["unread_only"]);
|
$unread_only = sql_bool_to_bool($_REQUEST["unread_only"]);
|
||||||
$enable_nested = sql_bool_to_bool($_REQUEST["enable_nested"]);
|
$enable_nested = sql_bool_to_bool($_REQUEST["enable_nested"]);
|
||||||
$include_empty = (int)$_REQUEST['include_empty'];
|
$include_empty = sql_bool_to_bool($_REQUEST['include_empty']);
|
||||||
|
|
||||||
// TODO do not return empty categories, return Uncategorized and standard virtual cats
|
// TODO do not return empty categories, return Uncategorized and standard virtual cats
|
||||||
|
|
||||||
@@ -706,7 +706,7 @@ class API extends Handler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getFeedTree() {
|
function getFeedTree() {
|
||||||
$include_empty = (int)$_REQUEST['include_empty'];
|
$include_empty = sql_bool_to_bool($_REQUEST['include_empty']);
|
||||||
|
|
||||||
$pf = new Pref_Feeds($this->link, $_REQUEST);
|
$pf = new Pref_Feeds($this->link, $_REQUEST);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user