aboutsummaryrefslogtreecommitdiff
path: root/views/default/friends/collection.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-06-29 21:38:01 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-06-29 21:38:01 +0000
commita87a2d7aca4c586ceb10cbc552ddc46362d26151 (patch)
treed66d212352e6e5fdd5bf07f0a278558ee22431b3 /views/default/friends/collection.php
parent18124259f3ca92b8357e4b903d8133e28a7e1cc5 (diff)
downloadelgg-a87a2d7aca4c586ceb10cbc552ddc46362d26151.tar.gz
elgg-a87a2d7aca4c586ceb10cbc552ddc46362d26151.tar.bz2
Ref #1015: Correctly placed the end div for access collection delete link.
git-svn-id: https://code.elgg.org/elgg/trunk@3364 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/friends/collection.php')
-rw-r--r--views/default/friends/collection.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/views/default/friends/collection.php b/views/default/friends/collection.php
index bcb127c4a..f694aaa44 100644
--- a/views/default/friends/collection.php
+++ b/views/default/friends/collection.php
@@ -27,12 +27,11 @@
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>";
}
-
- echo "</div>";
echo $coll->name;
echo " (<span id=\"friends_membership_count{$vars['friendspicker']}\">{$count}</span>) </h2>";