From: Evan Prodromou Date: Thu, 14 Jan 2010 06:12:19 +0000 (-0800) Subject: go straight to the DB for inbox before insert X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=abd67452dad9c0e53427731d96de15428a99b086;p=quix0rs-gnu-social.git go straight to the DB for inbox before insert --- diff --git a/classes/Inbox.php b/classes/Inbox.php index 83cfe8ef82..f3d4afca39 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); }