aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-01-10 11:39:02 +0100
committerMario Vavti <mario@mariovavti.com>2018-01-10 11:39:02 +0100
commit46cc360e4e099d0ef91e06833525796f42f1343b (patch)
treefbaa017fae198441d1b5d2d70ca6eff7aed3535f /Zotlabs/Widget
parentd6ff8dc9b67b8bc80e6f5f4f1bc35c14a284ebd2 (diff)
parent3ce79dd6e12c6eb7602649c93798883a2bef1e86 (diff)
downloadvolse-hubzilla-46cc360e4e099d0ef91e06833525796f42f1343b.tar.gz
volse-hubzilla-46cc360e4e099d0ef91e06833525796f42f1343b.tar.bz2
volse-hubzilla-46cc360e4e099d0ef91e06833525796f42f1343b.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'Zotlabs/Widget')
-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 = '';