Skip to content
This repository
Browse code

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 authored January 10, 2010

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  engine/lib/metadata.php
4  engine/lib/metadata.php
@@ -421,7 +421,7 @@ function get_metadata_byname($entity_guid,  $meta_name) {
421 421
 		return $meta;
422 422
 	}
423 423
 
424  
-	$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");
  424
+	$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");
425 425
 	if (!$result) {
426 426
 		return false;
427 427
 	}
@@ -1139,4 +1139,4 @@ function metadata_test($hook, $type, $value, $params) {
1139 1139
 	global $CONFIG;
1140 1140
 	$value[] = $CONFIG->path . 'engine/tests/objects/metadata.php';
1141 1141
 	return $value;
1142  
-}
  1142
+}

0 notes on commit f3303c8

Please sign in to comment.
Something went wrong with that request. Please try again.