Skip to content

Commit

Permalink
fixed FavHelper bug
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Apr 8, 2015
1 parent 5838318 commit f47e44a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion View/Helper/FavHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ public function urlDrop($key, $modelId, $full = false){
*/
public function faved($key, $modelId){
$Fav = ClassRegistry::init('Fav.Fav');
return $Fav->faved($key, $modelId);
try {
return $Fav->faved($key, $modelId);
} catch (FavException $e) {
return false;
}
}
}

0 comments on commit f47e44a

Please sign in to comment.