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/Daemon/Notifier.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Zotlabs/Daemon') diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php index f9e1d13d5..bfccb4099 100644 --- a/Zotlabs/Daemon/Notifier.php +++ b/Zotlabs/Daemon/Notifier.php @@ -657,7 +657,8 @@ class Notifier { $hash = new_uuid(); - $env = (($hub_env && $hub_env[$hub['hubloc_site_id']]) ? $hub_env[$hub['hubloc_site_id']] : ''); + $env = $hub_env[$hub['hubloc_site_id']] ?? ''; + if ((self::$private) && (!$env)) { continue; } -- cgit v1.2.3