From 52431fa58b4626f4ad76b2e12f356568a726454e Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 12 Nov 2008 13:13:27 -0500 Subject: [PATCH] correct method for querying darcs-hash:20081112181327-5ed1f-b9703dc936c8d99b226055053b02e4ba177b240d.gz --- scripts/fixup_inboxes.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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'); } -- 2.39.5