aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();