From: Evan Prodromou Date: Wed, 12 Nov 2008 18:13:27 +0000 (-0500) Subject: correct method for querying X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=52431fa58b4626f4ad76b2e12f356568a726454e;p=quix0rs-gnu-social.git correct method for querying darcs-hash:20081112181327-5ed1f-b9703dc936c8d99b226055053b02e4ba177b240d.gz --- diff --git a/scripts/fixup_inboxes.php b/scripts/fixup_inboxes.php index 1b7113ed42..415dea4dc7 100755 --- a/scripts/fixup_inboxes.php +++ b/scripts/fixup_inboxes.php @@ -37,9 +37,9 @@ $cnt = $user->find(); while ($user->fetch()) { common_log(LOG_INFO, 'Updating inbox for user ' . $user->id); $inbox = new Notice_inbox(); - $inbox->qry('INSERT INTO notice_inbox (user_id, notice_id, created) ' . - 'SELECT ' . $user->id . ', notice.id, notice.created ' . - 'FROM subscription JOIN notice ON subscription.subscribed = notice.profile_id ' . - 'WHERE subscription.subscriber = ' . $user->id . ' ' . - 'AND notice.created >= subscription.created'); + $inbox->query('INSERT INTO notice_inbox (user_id, notice_id, created) ' . + 'SELECT ' . $user->id . ', notice.id, notice.created ' . + 'FROM subscription JOIN notice ON subscription.subscribed = notice.profile_id ' . + 'WHERE subscription.subscriber = ' . $user->id . ' ' . + 'AND notice.created >= subscription.created'); }