From c51bf8546e6b776f8ac684890e90b7ff0e1bf3e9 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 7 Apr 2008 15:32:31 +0000 Subject: Further adventures in getting things to delete correctly git-svn-id: https://code.elgg.org/elgg/trunk@413 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engine/lib/entities.php') 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; } } } -- cgit v1.2.3