1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-26 11:59:02 +02:00

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

View File

@ -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);