From 84487edc05a28f016872058ca3175fdf41efbcb6 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 16 Jun 2023 12:27:08 +0000 Subject: undefined variable and return null in fetch_local if we did not find anything (we also return null in fetch) --- Zotlabs/Lib/Activity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zotlabs/Lib/Activity.php') diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 23ba89462..9a28b7038 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -66,7 +66,7 @@ class Activity { if ($items) { return self::encode_item(array_shift($items), true); } - return false; + return null; } static function fetch($url, $channel = null) { -- cgit v1.2.3