diff --git a/leet.php b/leet.php index 9b73aed..fc83f01 100644 --- a/leet.php +++ b/leet.php @@ -4,6 +4,10 @@ $now = gmdate('Y-m-d'); $url = $db->getDailyLeetCode($now); + if ($url == null) { + $url = "https://www.leetcode.com"; + } + // Redirect to the daily leetcode problem header("Location: $url"); ?>