From f3303c8895ca25dda6cb8d5c9d1126ad85e19d66 Mon Sep 17 00:00:00 2001 From: brettp Date: Sun, 10 Jan 2010 22:20:45 +0000 Subject: Fixes #538. Applied Cash's patch. This is an old one...jeepers. git-svn-id: http://code.elgg.org/elgg/trunk@3793 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/metadata.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php index d2851275d..dbe021414 100644 --- a/engine/lib/metadata.php +++ b/engine/lib/metadata.php @@ -421,7 +421,7 @@ function get_metadata_byname($entity_guid, $meta_name) { return $meta; } - $result = get_data("SELECT m.*, n.string as name, v.string as value from {$CONFIG->dbprefix}metadata m JOIN {$CONFIG->dbprefix}entities e ON e.guid = m.entity_guid JOIN {$CONFIG->dbprefix}metastrings v on m.value_id = v.id JOIN {$CONFIG->dbprefix}metastrings n on m.name_id = n.id where m.entity_guid=$entity_guid and m.name_id='$meta_name' and $access and $md_access", "row_to_elggmetadata"); + $result = get_data("SELECT m.*, n.string as name, v.string as value from {$CONFIG->dbprefix}metadata m JOIN {$CONFIG->dbprefix}entities e ON e.guid = m.entity_guid JOIN {$CONFIG->dbprefix}metastrings v on m.value_id = v.id JOIN {$CONFIG->dbprefix}metastrings n on m.name_id = n.id where m.entity_guid=$entity_guid and m.name_id='$meta_name' and $access and $md_access ORDER BY m.id ASC", "row_to_elggmetadata"); if (!$result) { return false; } @@ -1139,4 +1139,4 @@ function metadata_test($hook, $type, $value, $params) { global $CONFIG; $value[] = $CONFIG->path . 'engine/tests/objects/metadata.php'; return $value; -} \ No newline at end of file +} -- cgit v1.2.3