summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-28 15:31:39 +0400
committerAndrew Dolgov <[email protected]>2013-03-28 15:31:39 +0400
commitb3575bd8e46b85c56f684cdc905ae31aba4c983f (patch)
tree82cef1b825ca2cb048a83a5d22a3ed341514dc12 /classes
parent66ca7c30975a0435f7c8a2aa6c1009f201ccec8c (diff)
fix include_empty to use bool type
Diffstat (limited to 'classes')
-rw-r--r--classes/api.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/api.php b/classes/api.php
index d1733842c..3b99b79f6 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);