]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix "Undefined property: DisfavorAction::$id"
authorJeffery To <jeffery.to@gmail.com>
Fri, 12 Jun 2009 11:38:04 +0000 (19:38 +0800)
committerJeffery To <jeffery.to@gmail.com>
Fri, 12 Jun 2009 11:38:04 +0000 (19:38 +0800)
actions/disfavor.php

index bc13b09da5ea931224a08cc07834034771167fd4..4064a0d988dbee3fbd89dc2507706e60cdbd65b4 100644 (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!'));