Update lib/tips.php