summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/User.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/classes/User.php b/classes/User.php
index ce7632ec5..036da2b88 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -143,9 +143,8 @@ class User extends Memcached_DataObject
function noticesWithFriendsWindow() {
-
$notice = new Notice();
-
+
$notice->query('SELECT notice.* ' .
'FROM notice JOIN subscription on notice.profile_id = subscription.subscribed ' .
'WHERE subscription.subscriber = ' . $this->id . ' ' .