aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/metadata.php
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-01-22 12:50:25 -0800
committerBrett Profitt <brett.profitt@gmail.com>2012-01-22 12:50:25 -0800
commit673a7bedf097289b2885c7bd35b2d46b612d67dc (patch)
tree39a200de24ebef203e0e5e428432ea58b33b2625 /engine/lib/metadata.php
parent87a511a0c7c96b15d227cf36dd547e1bdff95107 (diff)
downloadelgg-673a7bedf097289b2885c7bd35b2d46b612d67dc.tar.gz
elgg-673a7bedf097289b2885c7bd35b2d46b612d67dc.tar.bz2
Refs #4325. Restored the null vs bool return in elgg_delete_metadata().
Diffstat (limited to 'engine/lib/metadata.php')
-rw-r--r--engine/lib/metadata.php4
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;
}
/**