aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/group.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/group.php')
-rw-r--r--engine/lib/group.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/lib/group.php b/engine/lib/group.php
index 31c0460b6..851b50af2 100644
--- a/engine/lib/group.php
+++ b/engine/lib/group.php
@@ -386,7 +386,8 @@
if (trigger_elgg_event('update',$entity->type,$entity)) {
return $guid;
} else {
- delete_entity($guid);
+ $entity->delete();
+ //delete_entity($guid);
}
}
}
@@ -399,7 +400,8 @@
if (trigger_elgg_event('create',$entity->type,$entity)) {
return $guid;
} else {
- delete_entity($guid);
+ $entity->delete();
+ //delete_entity($guid);
}
}
}