aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/metadata.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-12-30 18:29:01 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-12-30 18:29:01 +0000
commit907177e03cde4f37863bd0d437704ff11530a2dd (patch)
treea1f5747a8dc1d9bf18e842517066e73b6a1afdf7 /engine/lib/metadata.php
parent07dd32538a78f3471cf80ae9064a5feeb3dacfa9 (diff)
downloadelgg-907177e03cde4f37863bd0d437704ff11530a2dd.tar.gz
elgg-907177e03cde4f37863bd0d437704ff11530a2dd.tar.bz2
Closes #643: Confirmed bug, applied fix as suggested.
git-svn-id: https://code.elgg.org/elgg/trunk@2523 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/metadata.php')
-rw-r--r--engine/lib/metadata.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php
index eddc3c169..896b7652f 100644
--- a/engine/lib/metadata.php
+++ b/engine/lib/metadata.php
@@ -472,7 +472,7 @@
$where[] = "m.value_id='$meta_v'";
}
if ($site_guid > 0)
- $where[] = "m.entity_guid = {$site_guid}";
+ $where[] = "e.site_guid = {$site_guid}";
$query = "SELECT m.*, n.string as name, v.string as value from {$CONFIG->dbprefix}entities e JOIN {$CONFIG->dbprefix}metadata m 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";
foreach ($where as $w)