diff options
author | CiaranG <ciaran@ciarang.com> | 2009-04-08 22:11:58 +0100 |
---|---|---|
committer | CiaranG <ciaran@ciarang.com> | 2009-04-08 22:11:58 +0100 |
commit | 85873b1f2b5b6a3e065cf5d227df31380b6f239e (patch) | |
tree | 98026e5fdd03e33fa872204a227b102dcca3cf7a /lib/featureduserssection.php | |
parent | 070cd3533c3474dc065c6681befb92dac51f4bf7 (diff) | |
parent | 18c8a55ba61e507f08162149273a9a33b9b73ca0 (diff) |
Merge branch 'master' of git://gitorious.org/laconica/br3nda into review/master
Diffstat (limited to 'lib/featureduserssection.php')
-rw-r--r-- | lib/featureduserssection.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/featureduserssection.php b/lib/featureduserssection.php index aed94b1a5..4b9238d47 100644 --- a/lib/featureduserssection.php +++ b/lib/featureduserssection.php @@ -57,9 +57,14 @@ class FeaturedUsersSection extends ProfileSection $quoted[] = "'$nick'"; } + $table = "user"; + if(common_config('db','quote_identifiers')) { + $table = '"' . $table . '"'; + } + $qry = 'SELECT profile.* ' . - 'FROM profile JOIN user on profile.id = user.id ' . - 'WHERE user.nickname in (' . implode(',', $quoted) . ') ' . + 'FROM profile JOIN '. $table .' on profile.id = '. $table .'.id ' . + 'WHERE '. $table .'.nickname in (' . implode(',', $quoted) . ') ' . 'ORDER BY profile.created DESC '; $limit = PROFILES_PER_SECTION + 1; |