]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
that pesky table named user - now quoted
authorBrenda Wallace <shiny@cpan.org>
Wed, 9 Dec 2009 00:26:59 +0000 (13:26 +1300)
committerBrenda Wallace <shiny@cpan.org>
Wed, 9 Dec 2009 00:26:59 +0000 (13:26 +1300)
classes/Forward.php

index e9b83a58bfda9b64ceba7b653a2d712a6e6e39b2..09b2d6a4ee533c9fe60ff0c9bbbc19f667a819a9 100644 (file)
@@ -77,7 +77,8 @@ class Forward extends Memcached_DataObject
 
         $user = new User();
 
-        $user->query('SELECT user.* FROM user JOIN subscription ON user.id = subscription.subscriber '.
+        $usertable = common_database_tablename('user');
+        $user->query("SELECT $usertable.* FROM $usertable INNER JOIN subscription ON $usertable.id = subscription.subscriber ".
                      'WHERE subscription.subscribed = '.$this->profile_id);
 
         $ni = array();