From 26634ef0a08234980835698e40b23a291305d1f8 Mon Sep 17 00:00:00 2001 From: CiaranG Date: Tue, 9 Sep 2008 03:22:24 -0400 Subject: Initial support for PostgreSQL darcs-hash:20080909072224-f6e2c-881bd2e7fb032f336fecae9ca5ce527dd821d3dc.gz --- classes/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes/User.php') diff --git a/classes/User.php b/classes/User.php index 9251a9a84..96a7482ea 100644 --- a/classes/User.php +++ b/classes/User.php @@ -145,13 +145,13 @@ class User extends DB_DataObject function noticesWithFriends($offset=0, $limit=20) { $notice = new Notice(); - + $notice->query('SELECT notice.* ' . 'FROM notice JOIN subscription on notice.profile_id = subscription.subscribed ' . 'WHERE subscription.subscriber = ' . $this->id . ' ' . 'ORDER BY created DESC, notice.id DESC ' . 'LIMIT ' . $offset . ', ' . $limit); - + return $notice; } -- cgit v1.2.3-54-g00ecf