aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/metastrings.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-07 02:50:29 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-07 02:50:29 +0000
commit69038b58a7ea9af845c3503718366a0e66491189 (patch)
treeb3ba7827d9ecabb51a60559bb7917e5c0a4f6efd /engine/lib/metastrings.php
parente4b2df18430a5423db399c63371fc4521aba4dbd (diff)
downloadelgg-69038b58a7ea9af845c3503718366a0e66491189.tar.gz
elgg-69038b58a7ea9af845c3503718366a0e66491189.tar.bz2
Fixes #3232 removed unnecessary distinct plus variable in select for metastrings calculation
git-svn-id: http://code.elgg.org/elgg/trunk@8951 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/metastrings.php')
-rw-r--r--engine/lib/metastrings.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/engine/lib/metastrings.php b/engine/lib/metastrings.php
index 0d472a18b..47712d3fa 100644
--- a/engine/lib/metastrings.php
+++ b/engine/lib/metastrings.php
@@ -409,8 +409,7 @@ function elgg_get_metastring_based_objects($options) {
$query = "SELECT DISTINCT n_table.*, n.string as name,
v.string as value FROM {$db_prefix}$type n_table";
} else {
- $query = "SELECT DISTINCT v.string as value,
- {$options['metastring_calculation']}(v.string) as calculation FROM {$db_prefix}$type n_table";
+ $query = "SELECT {$options['metastring_calculation']}(v.string) as calculation FROM {$db_prefix}$type n_table";
}
// add joins