From 54f7543b0445c40ee14dc9fbf5694f849a43c50c Mon Sep 17 00:00:00 2001 From: icewing Date: Thu, 3 Apr 2008 15:54:45 +0000 Subject: Marcus Povey * Annotations and metadata now imported git-svn-id: https://code.elgg.org/elgg/trunk@393 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/metadata.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engine/lib/metadata.php') diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php index f8a448f14..fe38e48c8 100644 --- a/engine/lib/metadata.php +++ b/engine/lib/metadata.php @@ -305,8 +305,8 @@ { global $CONFIG; - $meta_name = get_metastring_id($meta_name); - $meta_value = get_metastring_id($meta_value); + $meta_n = get_metastring_id($meta_name); + $meta_v = get_metastring_id($meta_value); $entity_type = sanitise_string($entity_type); $entity_subtype = get_subtype_id($entity_type, $entity_subtype); @@ -323,9 +323,9 @@ if ($entity_subtype) $where[] = "e.subtype=$entity_subtype"; if ($meta_name!="") - $where[] = "m.name_id='$meta_name'"; + $where[] = "m.name_id='$meta_n'"; if ($meta_value!="") - $where[] = "m.value_id='$meta_value'"; + $where[] = "m.value_id='$meta_v'"; $query = "SELECT * from {$CONFIG->dbprefix}entities e JOIN {$CONFIG->dbprefix}metadata m on e.guid = m.entity_guid where"; foreach ($where as $w) -- cgit v1.2.3