From: Andrew Dolgov Date: Thu, 28 Mar 2013 11:31:39 +0000 (+0400) Subject: fix include_empty to use bool type X-Git-Tag: 1.7.6~204 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b3575bd8e46b85c56f684cdc905ae31aba4c983f;p=tt-rss.git fix include_empty to use bool type --- diff --git a/classes/api.php b/classes/api.php index d1733842..3b99b79f 100644 --- a/classes/api.php +++ b/classes/api.php @@ -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);