diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-02 10:35:26 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-02 10:35:26 +0000 |
commit | 03236a8ef6110a1931f105cb9cda365f47bcfeaa (patch) | |
tree | 6e37862cd3752a18be324c8a6ed22a2bc40affaf /engine/lib/metadata.php | |
parent | 15619994a3915f6dce503f4e99e2e07e8602a33b (diff) | |
download | elgg-03236a8ef6110a1931f105cb9cda365f47bcfeaa.tar.gz elgg-03236a8ef6110a1931f105cb9cda365f47bcfeaa.tar.bz2 |
debug
git-svn-id: https://code.elgg.org/elgg/trunk@335 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/metadata.php')
-rw-r--r-- | engine/lib/metadata.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php index f05cf2430..2f6087f8a 100644 --- a/engine/lib/metadata.php +++ b/engine/lib/metadata.php @@ -263,7 +263,8 @@ $meta_name = get_metastring_id($meta_name); $entity_guid = (int)$entity_guid; $access = get_access_list(); - + + echo "SELECT m.*, n.string as name, v.string as value from {$CONFIG->dbprefix}metadata m 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 (m.access_id in {$access} or (m.access_id = 0 and m.owner_guid = {$_SESSION['id']}))"; return get_data("SELECT m.*, n.string as name, v.string as value from {$CONFIG->dbprefix}metadata m 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 (m.access_id in {$access} or (m.access_id = 0 and m.owner_guid = {$_SESSION['id']}))", "row_to_elggmetadata"); } |