From 4227a4fc95647d5e984b707d3bf903a0f98a500a Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 20 Feb 2009 15:55:14 +0000 Subject: Fixes an annoying problem in countAnnotations. git-svn-id: https://code.elgg.org/elgg/trunk@2866 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/annotations.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php index 7a9f2e3c6..7e530eab9 100644 --- a/engine/lib/annotations.php +++ b/engine/lib/annotations.php @@ -580,9 +580,9 @@ $entity_guid = (int)$entity_guid; $entity_type = sanitise_string($entity_type); $entity_subtype = get_subtype_id($entity_type, $entity_subtype); - $name = get_metastring_id($name); + if ($name != '') $name = get_metastring_id($name); - if (empty($name)) return 0; + // if (empty($name)) return 0; $where = array(); -- cgit v1.2.3