Fixed removing from favorites

This commit is contained in:
Marcin Kurczewski 2013-10-14 12:13:22 +02:00
parent 23f430f41c
commit 79b51d31e5

View file

@ -580,7 +580,7 @@ class PostController
if ($finalKey === null)
throw new SimpleException('Not in favorites');
unset ($post->ownFavoritee[$key]);
unset ($post->ownFavoritee[$finalKey]);
R::store($post);
$this->context->transport->success = true;
}