aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/default/friends/collection.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/friends/collection.php b/views/default/friends/collection.php
index f694aaa44..a12ad6e6a 100644
--- a/views/default/friends/collection.php
+++ b/views/default/friends/collection.php
@@ -27,7 +27,7 @@
echo "<li><h2>";
//as collections are private, check that the logged in user is the owner
- if(!$coll->owner_guid == $_SESSION['user']->getGUID()) {
+ if($coll->owner_guid == $_SESSION['user']->getGUID()) {
$confirm = addslashes(elgg_echo('question:areyousure'));
echo "<div class=\"friends_collections_controls\"> <a href=\"" . $vars['url'] . "action/friends/deletecollection?collection={$coll->id}\" class=\"delete_collection\" onclick=\"if (!confirm('{$confirm}')) { return false; }; $('div.friends_picker').empty();\"> </a>";
echo "</div>";