From: Hypolite Petovan Date: Sat, 11 Jul 2020 13:18:42 +0000 (-0400) Subject: Fix wrong condition in Diaspora\Fetch X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2af20ea17aa62dfc907b0bae7fe590e9fabc2eee;p=friendica.git Fix wrong condition in Diaspora\Fetch --- diff --git a/src/Module/Diaspora/Fetch.php b/src/Module/Diaspora/Fetch.php index aba9d33be7..c94badf7e3 100644 --- a/src/Module/Diaspora/Fetch.php +++ b/src/Module/Diaspora/Fetch.php @@ -59,7 +59,7 @@ class Fetch extends BaseModule if (empty($item)) { $condition = ['guid' => $guid, 'network' => [Protocol::DFRN, Protocol::DIASPORA]]; $item = Item::selectFirst(['author-link'], $condition); - if (empty($item)) { + if (!empty($item["author-link"])) { $parts = parse_url($item["author-link"]); if (empty($parts["scheme"]) || empty($parts["host"])) { throw new HTTPException\InternalServerErrorException();