- $notice = DB_DataObject::factory('notice');
- $notice->id = $reply->notice_id;
- $notice->find(1);
- $this->show_reply($notice, $reply->replied_id);
+ $notice = new Notice();
+ $notice->id = $reply->notice_id;
+ $result = $notice->find(true);
+ if (!$result) {
+ continue;
+ }
+ $this->show_notice($notice);