aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/metadata.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/metadata.php')
-rw-r--r--engine/lib/metadata.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php
index ca127c386..da189fe30 100644
--- a/engine/lib/metadata.php
+++ b/engine/lib/metadata.php
@@ -362,9 +362,10 @@
$metabyname_memcache = new ElggMemcache('metabyname_memcache');
if ($metabyname_memcache) $metabyname_memcache->delete("{$metadata->entity_guid}:{$metadata->name_id}");
- if ($metadata->canEdit())
+ if (($metadata->canEdit()) && (trigger_elgg_event('delete', 'metadata', $obj)))
return delete_data("DELETE from {$CONFIG->dbprefix}metadata where id=$id");
-
+
+ return false;
}
/**