From 0ed6deaefe51becfe85228831a4ec8e1c14117c1 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 24 Feb 2009 18:26:42 +0000 Subject: Syntax improvements for the get_metadata functions git-svn-id: https://code.elgg.org/elgg/trunk@2935 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/metadata.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engine') 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++; } -- cgit v1.2.3