summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorBrenda Wallace <shiny@cpan.org>2009-12-09 13:26:59 +1300
committerBrenda Wallace <shiny@cpan.org>2009-12-09 13:26:59 +1300
commit789378838b9a3ad6bff906d70c8316527aed9e98 (patch)
tree33523f6dcc2f39d3cd08f8abc0ca8a9c66dd51b3 /classes
parent3e9c2d779a3d3e014e8900060c3a2632d9e7f138 (diff)
that pesky table named user - now quoted
Diffstat (limited to 'classes')
-rw-r--r--classes/Forward.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/Forward.php b/classes/Forward.php
index e9b83a58b..09b2d6a4e 100644
--- a/classes/Forward.php
+++ b/classes/Forward.php
@@ -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();