summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-12-17 16:24:13 +0300
committerAndrew Dolgov <[email protected]>2017-12-17 16:24:13 +0300
commitbed2d6e05499c574b64d1dfdf6be3f43d704abb6 (patch)
treedb3ecec2c71c28ad05f32ad33bdfc15f73f9b7db /include
parentd0cce0c7a431d886403632ef94add650363d4ef6 (diff)
force-cast some variables used in queries to integer
do not display SQL query in headlines debug mode
Diffstat (limited to 'include')
-rw-r--r--include/functions.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index 60aebe0da..a9786e49b 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -2278,6 +2278,7 @@
if ($rule["cat_id"] > 0) {
$children = Feeds::getChildCategories($rule["cat_id"], $owner_uid);
array_push($children, $rule["cat_id"]);
+ $children = array_map("intval", $children);
$children = join(",", $children);