aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-07-03 12:42:46 +0000
committerMario <mario@mariovavti.com>2023-07-03 12:42:46 +0000
commit10b49af776e3a8cc94cb99332fca987503b09be1 (patch)
treede7f84540633a8ddbbf0c1215e6fbfb98ec9f5c5
parent3497ced9f9a8fb42311165b35ce709ec90f0bce9 (diff)
downloadvolse-hubzilla-10b49af776e3a8cc94cb99332fca987503b09be1.tar.gz
volse-hubzilla-10b49af776e3a8cc94cb99332fca987503b09be1.tar.bz2
volse-hubzilla-10b49af776e3a8cc94cb99332fca987503b09be1.zip
fix php warning
-rw-r--r--include/items.php8
1 files changed, 6 insertions, 2 deletions
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