aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/friends/deletecollection.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/actions/friends/deletecollection.php b/actions/friends/deletecollection.php
index 3d389e6c2..f47ac50e9 100644
--- a/actions/friends/deletecollection.php
+++ b/actions/friends/deletecollection.php
@@ -22,7 +22,7 @@
if($get_collection){
- if(array_pop($get_collection)->owner_guid == $_SESSION['user']->getGUID()){
+ if($get_collection->owner_guid == $_SESSION['user']->getGUID()){
$delete_collection = delete_access_collection($collection_id);
@@ -32,14 +32,14 @@
} else {
// Failure message
- system_message(elgg_echo("friends:collectiondeletefailed"));
+ register_error(elgg_echo("friends:collectiondeletefailed"));
}
} else {
// Failure message
- system_message(elgg_echo("friends:collectiondeletefailed"));
+ register_error(elgg_echo("friends:collectiondeletefailed"));
}