From cd59c67c678f2ac1cc8457c05e5420d38df152cc Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 18 Jan 2021 08:43:08 +0000 Subject: fix undefined variable --- include/items.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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)); -- cgit v1.2.3