From f87298cded18dc2f4aa5c56370f8d5aa33d93160 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 25 Sep 2008 13:29:23 +0000 Subject: Count annotations now fails properly if a metastring is not found. Fixes #377 git-svn-id: https://code.elgg.org/elgg/trunk@2133 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/annotations.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engine/lib') diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php index 4d84b2d34..92253bf1d 100644 --- a/engine/lib/annotations.php +++ b/engine/lib/annotations.php @@ -576,6 +576,8 @@ $entity_subtype = get_subtype_id($entity_type, $entity_subtype); $name = get_metastring_id($name); + if (empty($name)) return 0; + $where = array(); if ($entity_guid) -- cgit v1.2.3