aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/friends/deletecollection.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/actions/friends/deletecollection.php b/actions/friends/deletecollection.php
index f47ac50e9..0644cc6c1 100644
--- a/actions/friends/deletecollection.php
+++ b/actions/friends/deletecollection.php
@@ -27,7 +27,10 @@
$delete_collection = delete_access_collection($collection_id);
// Success message
- system_message(elgg_echo("friends:collectiondeleted"));
+ if ($delete_collection)
+ system_message(elgg_echo("friends:collectiondeleted"));
+ else
+ register_error(elgg_echo("friends:collectiondeletefailed"));
} else {