From: Michael Date: Tue, 2 May 2023 09:21:11 +0000 (+0000) Subject: Fix warning: Undefined array key "post" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=349fa08ecef3183c418e76b450d24a716410d9d4;p=friendica.git Fix warning: Undefined array key "post" --- diff --git a/src/Model/Item.php b/src/Model/Item.php index a730404ed4..1943ea4f8f 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -3047,7 +3047,7 @@ class Item $shared_item = Post::selectFirst($fields, ['uri-id' => $media[0]['media-uri-id'], 'uid' => [$item['uid'], 0]]); if (empty($shared_item['uri-id'])) { $shared_item = Post::selectFirst($fields, ['plink' => $media[0]['url'], 'uid' => [$item['uid'], 0]]); - } elseif (strtolower($shared['post']['uri']) != strtolower($media[0]['url'])) { + } elseif (!in_array(strtolower($media[0]['url']), $shared_links)) { $shared_links[] = strtolower($media[0]['url']); }