diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-07 16:18:45 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-07 16:18:45 +0000 |
commit | 0945f262bf45c4277c65bd38db52e0d1ea3211c7 (patch) | |
tree | 0229a727a86326d2ad2f657cbdd00acbb5bdfdaf /engine/lib/annotations.php | |
parent | 31c43df39133b5dc32bced11260ce3f2c4c7d6d8 (diff) | |
download | elgg-0945f262bf45c4277c65bd38db52e0d1ea3211c7.tar.gz elgg-0945f262bf45c4277c65bd38db52e0d1ea3211c7.tar.bz2 |
Further annotation / metadata fixes
git-svn-id: https://code.elgg.org/elgg/trunk@419 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/annotations.php')
-rw-r--r-- | engine/lib/annotations.php | 3 |
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"); } |