diff --git a/scripts/inbox_users.php b/scripts/inbox_users.php index b74a212dcc..0543abb2a3 100755 --- a/scripts/inbox_users.php +++ b/scripts/inbox_users.php @@ -62,7 +62,7 @@ foreach ($ids as $id) { $old_inbox = new Notice_inbox(); $old_inbox->user_id = $user->id; - $result = $inbox->delete(); + $result = $old_inbox->delete(); if (is_null($result) || $result === false) { common_log_db_error($old_inbox, 'DELETE', __FILE__);