diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-01-22 14:22:43 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-01-22 14:22:43 -0500 |
commit | 6d0991b93c251473bc37a06bd383c362f9d396a9 (patch) | |
tree | 9fff217d65820cd98ee04030dbf1654625b895f7 /engine | |
parent | 3199a7b96830882e74b9ce764a388d2e2fe5e795 (diff) | |
download | elgg-6d0991b93c251473bc37a06bd383c362f9d396a9.tar.gz elgg-6d0991b93c251473bc37a06bd383c362f9d396a9.tar.bz2 |
Fixes #4318 added guid to the list of parameters for elgg_delete_metadata()
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/metadata.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php index 19e8aa3c8..8cc261465 100644 --- a/engine/lib/metadata.php +++ b/engine/lib/metadata.php @@ -294,11 +294,11 @@ function elgg_get_metadata(array $options = array()) { * Deletes metadata based on $options. * * @warning Unlike elgg_get_metadata() this will not accept an empty options array! - * This requires some constraints: metadata_owner_guid(s), - * metadata_name(s), metadata_value(s), or limit must be set. + * This requires at least one constraints: metadata_owner_guid(s), + * metadata_name(s), metadata_value(s), guid(s), or limit must be set. * - * @param array $options An options array. {@See elgg_get_metadata()} - * @return mixed + * @param array $options An options array. {@see elgg_get_metadata()} + * @return bool * @since 1.8.0 */ function elgg_delete_metadata(array $options) { @@ -307,7 +307,8 @@ function elgg_delete_metadata(array $options) { } $options['metastring_type'] = 'metadata'; - return elgg_batch_metastring_based_objects($options, 'elgg_batch_delete_callback'); + $result = elgg_batch_metastring_based_objects($options, 'elgg_batch_delete_callback'); + return (bool) $result; } /** |