aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-01-10 22:20:45 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-01-10 22:20:45 +0000
commitf3303c8895ca25dda6cb8d5c9d1126ad85e19d66 (patch)
tree3d9868707e2a7ce1a5cae574615efcd7ef4a9ffc
parent6007e71050c4e385367118314d44b36cfc507197 (diff)
downloadelgg-f3303c8895ca25dda6cb8d5c9d1126ad85e19d66.tar.gz
elgg-f3303c8895ca25dda6cb8d5c9d1126ad85e19d66.tar.bz2
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
-rw-r--r--engine/lib/metadata.php4
1 files 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
+}