Fix "Undefined property: DisfavorAction::$id"

This commit is contained in:
Jeffery To 2009-06-12 19:38:04 +08:00
parent 8064397588
commit 3a59199040
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class DisfavorAction extends Action
return;
}
$fave = new Fave();
$fave->user_id = $this->id;
$fave->user_id = $user->id;
$fave->notice_id = $notice->id;
if (!$fave->find(true)) {
$this->clientError(_('This notice is not a favorite!'));