From 10b49af776e3a8cc94cb99332fca987503b09be1 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 3 Jul 2023 12:42:46 +0000 Subject: fix php warning --- include/items.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/items.php') diff --git a/include/items.php b/include/items.php index c832a3075..d88a676a1 100644 --- a/include/items.php +++ b/include/items.php @@ -2451,13 +2451,17 @@ function send_status_notifications($post_id,$item) { intval($item['uid']) ); - $thr_parent_id = $r[0]['id']; + if ($r) { + $thr_parent_id = $r[0]['id']; + } + } $r = q("select channel_hash from channel where channel_id = %d limit 1", intval($item['uid']) ); - if(! $r) + + if(!$r) return; // my own post - no notification needed -- cgit v1.2.3