From 45bc1926254a5edd78edefcdef2f6d5002ec6fbd Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 10 Oct 2015 21:22:07 +0200 Subject: [PATCH] If that $options key wasn't set, this won't change anything anyway --- plugins/Bookmark/classes/Bookmark.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/Bookmark/classes/Bookmark.php b/plugins/Bookmark/classes/Bookmark.php index ade6b4fa7b..582eee69f4 100644 --- a/plugins/Bookmark/classes/Bookmark.php +++ b/plugins/Bookmark/classes/Bookmark.php @@ -276,9 +276,7 @@ class Bookmark extends Managed_DataObject 'object_type' => ActivityObject::BOOKMARK), $options); - if (!array_key_exists('uri', $options)) { - $options['uri'] = $nb->uri; - } + $options['uri'] = $nb->uri; try { $saved = Notice::saveNew($profile->id, -- 2.39.5