aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/annotations.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/annotations.php')
-rw-r--r--engine/lib/annotations.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php
index d671e544b..dc37cb665 100644
--- a/engine/lib/annotations.php
+++ b/engine/lib/annotations.php
@@ -221,7 +221,7 @@
$entity_type = sanitise_string($entity_type);
$entity_subtype = get_subtype_id($entity_type, $entity_subtype);
$name = get_metastring_id($name);
- $value = get_metastring_id($value);
+ if ($value != "") $value = get_metastring_id($value);
$owner_guid = (int)$owner_guid;
$limit = (int)$limit;
$offset = (int)$offset;
@@ -254,7 +254,6 @@
$query .= " $w and ";
$query .= " (a.access_id in {$access} or (a.access_id = 0 and a.owner_guid = {$_SESSION['id']}))"; // Add access controls
$query .= " order by $order_by limit $offset,$limit"; // Add order and limit
-
return get_data($query, "row_to_elggannotation");
}