Removed useless code

This commit is contained in:
2021-06-11 18:41:39 +02:00
parent 7a1c1e09f7
commit d4ba9e3f55
3 changed files with 8 additions and 11 deletions
+2 -5
View File
@@ -25,10 +25,7 @@ if (!empty($_GET["username"]) || !empty($_GET["userid"]))
$id = $_GET["userid"];
}
if ($id == "~Unalike")
{
}
else if ($id < 0)
else if ($id != "~Unalike" && $id < 0)
{
echo "Unauthorized";
exit(0);
@@ -216,7 +213,7 @@ if (!empty($_GET["username"]) || !empty($_GET["userid"]))
}
else if ($diffs_redirect)
{
header("Location: " . "../f/" . strval($beatmapset));
header("Location: ../f/" . strval($beatmapset));
}
}
}