aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/metadata.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-24 18:26:42 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-24 18:26:42 +0000
commit0ed6deaefe51becfe85228831a4ec8e1c14117c1 (patch)
tree66f980d1ab924f4da72ae38c24d64d21104f17c4 /engine/lib/metadata.php
parentdc2073ed2436bfe8ea47d9ca48e058c5dc050897 (diff)
downloadelgg-0ed6deaefe51becfe85228831a4ec8e1c14117c1.tar.gz
elgg-0ed6deaefe51becfe85228831a4ec8e1c14117c1.tar.bz2
Syntax improvements for the get_metadata functions
git-svn-id: https://code.elgg.org/elgg/trunk@2935 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/metadata.php')
-rw-r--r--engine/lib/metadata.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php
index 1fc88eba6..8a19d847a 100644
--- a/engine/lib/metadata.php
+++ b/engine/lib/metadata.php
@@ -527,13 +527,13 @@
$where = array();
- if ($entity_type!="")
+ if ($entity_type!=="")
$where[] = "e.type='$entity_type'";
if ($entity_subtype)
$where[] = "e.subtype=$entity_subtype";
- if ($meta_name!="")
+ if ($meta_name!=="")
$where[] = "m.name_id='$meta_n'";
- if ($meta_value!="")
+ if ($meta_value!=="")
$where[] = "m.value_id='$meta_v'";
if ($site_guid > 0)
$where[] = "e.site_guid = {$site_guid}";
@@ -620,9 +620,9 @@
$meta_n = get_metastring_id($meta_name);
$meta_v = get_metastring_id($meta_value);
$join .= " JOIN {$CONFIG->dbprefix}metadata m{$mindex} on e.guid = m{$mindex}.entity_guid ";
- if ($meta_name!="")
+ if ($meta_name!=="")
$where[] = "m{$mindex}.name_id='$meta_n'";
- if ($meta_value!="")
+ if ($meta_value!=="")
$where[] = "m{$mindex}.value_id='$meta_v'";
$mindex++;
}