]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Ref #1015: Correctly placed the end div for access collection delete link.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 29 Jun 2009 21:38:01 +0000 (21:38 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 29 Jun 2009 21:38:01 +0000 (21:38 +0000)
git-svn-id: https://code.elgg.org/elgg/trunk@3364 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/friends/collection.php

index bcb127c4a9858dfc378b5e6184abcf6b9b2fc070..f694aaa44ad06a7b9d6d3e501a9ac80696e2d608 100644 (file)
                        echo "<li><h2>";\r
                \r
                        //as collections are private, check that the logged in user is the owner\r
-                       if($coll->owner_guid == $_SESSION['user']->getGUID()) {\r
+                       if(!$coll->owner_guid == $_SESSION['user']->getGUID()) {\r
                                $confirm = addslashes(elgg_echo('question:areyousure'));\r
                                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>";\r
+                               echo "</div>";\r
                        }\r
-                       \r
-                       echo "</div>";\r
                        echo $coll->name;\r
                        echo " (<span id=\"friends_membership_count{$vars['friendspicker']}\">{$count}</span>) </h2>";\r
                        \r