aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-01-18 08:43:08 +0000
committerMario <mario@mariovavti.com>2021-01-18 08:43:08 +0000
commitcd59c67c678f2ac1cc8457c05e5420d38df152cc (patch)
tree68ec423a54139ed439acdb08bd3a1b8b1a5e8421 /include/items.php
parent37f1b774b7a71d59e41cfcc5215575a5309eac94 (diff)
downloadvolse-hubzilla-cd59c67c678f2ac1cc8457c05e5420d38df152cc.tar.gz
volse-hubzilla-cd59c67c678f2ac1cc8457c05e5420d38df152cc.tar.bz2
volse-hubzilla-cd59c67c678f2ac1cc8457c05e5420d38df152cc.zip
fix undefined variable
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index 571359167..69c056f7e 100755
--- a/include/items.php
+++ b/include/items.php
@@ -4478,7 +4478,7 @@ function items_fetch($arr,$channel = null,$observer_hash = null,$client_mode = C
$sql_extra = " AND item.parent IN ( SELECT parent FROM item WHERE $item_uids and item_thread_top = 1 $sql_options $item_normal ) ";
if($arr['since_id'])
- $sql_extra .= " and item.id > " . $since_id . " ";
+ $sql_extra .= " and item.id > " . intval($arr['since_id']) . " ";
if($arr['cat'])
$sql_extra .= protect_sprintf(term_query('item', $arr['cat'], TERM_CATEGORY));