aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/annotations.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-20 15:55:14 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-20 15:55:14 +0000
commit4227a4fc95647d5e984b707d3bf903a0f98a500a (patch)
tree1fba1cdcacdfe5082bc1805b412bf19b36fc03dd /engine/lib/annotations.php
parent5f5eda65658df6cc6b9f71ed887654d2ac2963c5 (diff)
downloadelgg-4227a4fc95647d5e984b707d3bf903a0f98a500a.tar.gz
elgg-4227a4fc95647d5e984b707d3bf903a0f98a500a.tar.bz2
Fixes an annoying problem in countAnnotations.
git-svn-id: https://code.elgg.org/elgg/trunk@2866 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/annotations.php')
-rw-r--r--engine/lib/annotations.php4
1 files 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();