fix include_empty to use bool type
This commit is contained in:
parent
66ca7c3097
commit
b3575bd8e4
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue