mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:02:54 +00:00
Merge pull request #13071 from annando/warning
Fix warning: Undefined array key "post"
This commit is contained in:
commit
791488982a
1 changed files with 1 additions and 1 deletions
|
@ -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']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue