From b3575bd8e46b85c56f684cdc905ae31aba4c983f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 28 Mar 2013 15:31:39 +0400 Subject: [PATCH] fix include_empty to use bool type --- classes/api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5