bug: Access to undefined variable in fav.php