summaryrefslogtreecommitdiff
path: root/actions/disfavor.php
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2009-06-12 19:38:04 +0800
committerJeffery To <jeffery.to@gmail.com>2009-06-12 19:38:04 +0800
commit3a59199040a4360b279c6c51700b74a643bbaf51 (patch)
tree2a41a08e4583a256ffbdbee9c8530b2f83cb7416 /actions/disfavor.php
parent806439758823e3fe6e51ec56ce653760902af2aa (diff)
Fix "Undefined property: DisfavorAction::$id"
Diffstat (limited to 'actions/disfavor.php')
-rw-r--r--actions/disfavor.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/disfavor.php b/actions/disfavor.php
index bc13b09da..4064a0d98 100644
--- a/actions/disfavor.php
+++ b/actions/disfavor.php
@@ -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!'));