From c6fa7b510dc938a14ddd1d2ecf2c98017924b9da Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 14 Feb 2011 01:24:51 +0000 Subject: Refs #2912. Added checks for constraints in dangerous functions. Unit tests no longer remove all metadata/annotations. git-svn-id: http://code.elgg.org/elgg/trunk@8215 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/annotations.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/lib/annotations.php') diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php index 9b3b49626..d4483ab82 100644 --- a/engine/lib/annotations.php +++ b/engine/lib/annotations.php @@ -200,7 +200,7 @@ function elgg_get_annotations(array $options = array()) { * @since 1.8 */ function elgg_delete_annotations(array $options) { - if (!$options || !is_array($options)) { + if (!elgg_is_valid_options_for_batch_operation($options, 'annotations')) { return false; } @@ -218,7 +218,7 @@ function elgg_delete_annotations(array $options) { * @since 1.8 */ function elgg_disable_annotations(array $options) { - if (!$options || !is_array($options)) { + if (!elgg_is_valid_options_for_batch_operation($options, 'annotations')) { return false; } -- cgit v1.2.3