summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-13 22:12:19 -0800
committerEvan Prodromou <evan@status.net>2010-01-13 22:12:19 -0800
commitabd67452dad9c0e53427731d96de15428a99b086 (patch)
tree1144524b350c184d89247b163c7774a7f027fd59 /classes
parent4b839cfc53d1aa5aa64adb940e122efe1475c9e9 (diff)
go straight to the DB for inbox before insert
Diffstat (limited to 'classes')
-rw-r--r--classes/Inbox.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/Inbox.php b/classes/Inbox.php
index 83cfe8ef8..f3d4afca3 100644
--- a/classes/Inbox.php
+++ b/classes/Inbox.php
@@ -103,9 +103,9 @@ class Inbox extends Memcached_DataObject
static function insertNotice($user_id, $notice_id)
{
- $inbox = Inbox::staticGet('user_id', $user_id);
+ $inbox = DB_DataObject::staticGet('inbox', 'user_id', $user_id);
- if (empty($inbox) || $inbox->fake) {
+ if (empty($inbox)) {
$inbox = Inbox::initialize($user_id);
}