diff options
author | zotlabs <mike@macgirvin.com> | 2018-01-09 17:04:02 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-01-09 17:04:02 -0800 |
commit | 3ce79dd6e12c6eb7602649c93798883a2bef1e86 (patch) | |
tree | f26b38f565fed8a1652d1ddbe971cfc3835fde19 /Zotlabs/Widget/Forums.php | |
parent | dfb75840b8b6fbe369f0b9097cd322832cc48108 (diff) | |
download | volse-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.php | 4 |
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 = ''; |