diff options
Diffstat (limited to 'engine/lib/metadata.php')
-rw-r--r-- | engine/lib/metadata.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php index c05e0b161..230bce50f 100644 --- a/engine/lib/metadata.php +++ b/engine/lib/metadata.php @@ -135,7 +135,7 @@ function create_metadata($entity_guid, $name, $value, $value_type, $owner_guid, if (elgg_trigger_event('create', 'metadata', $obj)) { return $id; } else { - delete_metadata($id); + elgg_delete_metadata_by_id($id); } } } @@ -219,7 +219,7 @@ function update_metadata($id, $name, $value, $value_type, $owner_guid, $access_i if (elgg_trigger_event('update', 'metadata', $obj)) { return true; } else { - delete_metadata($id); + elgg_delete_metadata_by_id($id); } } |