aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Forums.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-01-09 17:04:02 -0800
committerzotlabs <mike@macgirvin.com>2018-01-09 17:04:02 -0800
commit3ce79dd6e12c6eb7602649c93798883a2bef1e86 (patch)
treef26b38f565fed8a1652d1ddbe971cfc3835fde19 /Zotlabs/Widget/Forums.php
parentdfb75840b8b6fbe369f0b9097cd322832cc48108 (diff)
downloadvolse-hubzilla-3ce79dd6e12c6eb7602649c93798883a2bef1e86.tar.gz
volse-hubzilla-3ce79dd6e12c6eb7602649c93798883a2bef1e86.tar.bz2
volse-hubzilla-3ce79dd6e12c6eb7602649c93798883a2bef1e86.zip
scrutinizer mods
Diffstat (limited to 'Zotlabs/Widget/Forums.php')
-rw-r--r--Zotlabs/Widget/Forums.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Widget/Forums.php b/Zotlabs/Widget/Forums.php
index 91b987746..0b90b9740 100644
--- a/Zotlabs/Widget/Forums.php
+++ b/Zotlabs/Widget/Forums.php
@@ -11,8 +11,8 @@ class Forums {
$o = '';
- if(is_array($arr) && array_key_exists('limit',$arr))
- $limit = " limit " . intval($limit) . " ";
+ if(is_array($arr) && array_key_exists('limit',$arr) && intval($arr['limit']) >= 0)
+ $limit = " limit " . intval($arr['limit']) . " ";
else
$limit = '';