diff options
-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 8cc261465..f543c0fd0 100644 --- a/engine/lib/metadata.php +++ b/engine/lib/metadata.php @@ -298,7 +298,7 @@ function elgg_get_metadata(array $options = array()) { * metadata_name(s), metadata_value(s), guid(s), or limit must be set. * * @param array $options An options array. {@see elgg_get_metadata()} - * @return bool + * @return mixed Null if the metadata name is invalid. Bool on success or fail. * @since 1.8.0 */ function elgg_delete_metadata(array $options) { @@ -308,7 +308,7 @@ function elgg_delete_metadata(array $options) { $options['metastring_type'] = 'metadata'; $result = elgg_batch_metastring_based_objects($options, 'elgg_batch_delete_callback'); - return (bool) $result; + return $result; } /** |