Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit f3303c8895ca25dda6cb8d5c9d1126ad85e19d66 1 parent 6007e71
Brett Profitt brettp authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 engine/lib/metadata.php
4 engine/lib/metadata.php
View
@@ -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;
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.