From f4d39bd3c86feebd21cfbfe61b7da5d32421113d Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 2 Nov 2022 16:52:42 +0100 Subject: fix more php warnings --- Zotlabs/Zot6/Zot6Handler.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Zotlabs/Zot6/Zot6Handler.php') diff --git a/Zotlabs/Zot6/Zot6Handler.php b/Zotlabs/Zot6/Zot6Handler.php index 4dc410f52..053901205 100644 --- a/Zotlabs/Zot6/Zot6Handler.php +++ b/Zotlabs/Zot6/Zot6Handler.php @@ -71,7 +71,10 @@ class Zot6Handler implements IHandler { where xchan_hash ='%s' limit 1", dbesc($recip) ); - $x = Libzot::refresh([ 'hubloc_id_url' => $hub['hubloc_id_url']], $r[0], $force); + + if ($r) { + $x = Libzot::refresh([ 'hubloc_id_url' => $hub['hubloc_id_url']], $r[0], $force); + } } } else { -- cgit v1.2.3