aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-02 10:46:18 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-02 10:46:18 +0000
commit5f99e4766b5e4f8e20f38727acf2b35c2c8e3e7c (patch)
tree9c9fb42872e48bb66a0431896c3d057573b0ce7a /engine/lib
parent28fe2df8934f4c18bc472cb8a4945184fe0cad93 (diff)
downloadelgg-5f99e4766b5e4f8e20f38727acf2b35c2c8e3e7c.tar.gz
elgg-5f99e4766b5e4f8e20f38727acf2b35c2c8e3e7c.tar.bz2
debug
git-svn-id: https://code.elgg.org/elgg/trunk@341 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-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 eb5096f3e..427379ad2 100644
--- a/engine/lib/metadata.php
+++ b/engine/lib/metadata.php
@@ -264,7 +264,7 @@
$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']}))";
$result = 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");
if (!$result)
return false;