diff options
author | Andrew Dolgov <[email protected]> | 2017-12-17 16:24:13 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-12-17 16:24:13 +0300 |
commit | bed2d6e05499c574b64d1dfdf6be3f43d704abb6 (patch) | |
tree | db3ecec2c71c28ad05f32ad33bdfc15f73f9b7db /include/functions.php | |
parent | d0cce0c7a431d886403632ef94add650363d4ef6 (diff) |
force-cast some variables used in queries to integer
do not display SQL query in headlines debug mode
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 1 |
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); |