aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-11 16:35:07 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-11 16:35:07 +0000
commita2c203fb62bf8f221ed7863aff8b387d1da5daeb (patch)
tree8bb0342a8d2ffaf11099e97d0eb4f93179c98282 /actions
parente697394b9b509190f3ada9e46cc1832e4acab8c1 (diff)
downloadelgg-a2c203fb62bf8f221ed7863aff8b387d1da5daeb.tar.gz
elgg-a2c203fb62bf8f221ed7863aff8b387d1da5daeb.tar.bz2
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
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 {