fix include_empty to use bool type

This commit is contained in:
Andrew Dolgov 2013-03-28 15:31:39 +04:00
parent 66ca7c3097
commit b3575bd8e4
1 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ class API extends Handler {
function getCategories() {
$unread_only = sql_bool_to_bool($_REQUEST["unread_only"]);
$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
@ -706,7 +706,7 @@ class API extends Handler {
}
function getFeedTree() {
$include_empty = (int)$_REQUEST['include_empty'];
$include_empty = sql_bool_to_bool($_REQUEST['include_empty']);
$pf = new Pref_Feeds($this->link, $_REQUEST);