From ca08eb6d170d375ef4fca53604956f3474c7db19 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 22 Aug 2010 22:37:30 +0000 Subject: Merged r6701:6756 from 1.7 branch into trunk git-svn-id: http://code.elgg.org/elgg/trunk@6849 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/friends/deletecollection.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actions/friends/deletecollection.php') diff --git a/actions/friends/deletecollection.php b/actions/friends/deletecollection.php index 1e18adcea..d4e077a24 100644 --- a/actions/friends/deletecollection.php +++ b/actions/friends/deletecollection.php @@ -20,9 +20,9 @@ $collection_id = (int) get_input('collection'); // Check to see that the access collection exist and grab its owner $get_collection = get_access_collection($collection_id); -if($get_collection){ +if ($get_collection) { - if($get_collection->owner_guid == $_SESSION['user']->getGUID()) { + if ($get_collection->owner_guid == get_loggedin_userid()) { $delete_collection = delete_access_collection($collection_id); @@ -42,4 +42,4 @@ if($get_collection){ } // Forward to the collections page -forward("pg/collections/" . $_SESSION['user']->username); +forward("pg/collections/" . get_loggedin_user()->username); -- cgit v1.2.3