From a2c203fb62bf8f221ed7863aff8b387d1da5daeb Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 11 Aug 2008 16:35:07 +0000 Subject: Refs #228: Will now error if collection can not be deleted git-svn-id: https://code.elgg.org/elgg/trunk@1845 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/friends/deletecollection.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'actions') 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 { -- cgit v1.2.3