aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-07 15:32:31 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-07 15:32:31 +0000
commitc51bf8546e6b776f8ac684890e90b7ff0e1bf3e9 (patch)
tree5bbbade3df57d14b84444fa39dc252cb4e55dc8c /engine/lib/entities.php
parent110f0fa670a03bcd7f95a2d45a42d8a891d70544 (diff)
downloadelgg-c51bf8546e6b776f8ac684890e90b7ff0e1bf3e9.tar.gz
elgg-c51bf8546e6b776f8ac684890e90b7ff0e1bf3e9.tar.bz2
Further adventures in getting things to delete correctly
git-svn-id: https://code.elgg.org/elgg/trunk@413 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 1d77760e8..64aa902de 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -312,7 +312,8 @@
*/
public function delete()
{
- return delete_entity($this->get('guid'));
+ $res = delete_entity($this->get('guid'));
+ return $res;
}
// EXPORTABLE INTERFACE ////////////////////////////////////////////////////////////
@@ -693,7 +694,8 @@
if ($entity->canEdit()) {
$entity->clearMetadata();
$entity->clearAnnotations();
- return delete_data("DELETE from {$CONFIG->dbprefix}entities where guid={$guid}");
+ $res = delete_data("DELETE from {$CONFIG->dbprefix}entities where guid={$guid}");
+ return $res;
}
}
}