]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/featureduserssection.php
log errors in handling notices
[quix0rs-gnu-social.git] / lib / featureduserssection.php
index aed94b1a555e845b36c7fd23513fd90b0a9756cc..4b9238d471c5775d4f3c8b4bd2c47b2166400724 100644 (file)
@@ -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;