From 460d12ab7bb93daa6b03300fefdfccefb6d32d01 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Tue, 22 Apr 2025 13:15:31 +0500 Subject: upd: combined single_page and multiple_page into one + updated emote url --- src/alert.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/alert.php') diff --git a/src/alert.php b/src/alert.php index 62f1887..62045d5 100644 --- a/src/alert.php +++ b/src/alert.php @@ -10,7 +10,7 @@ function generate_alert(string $path, string $error, int $status = 400) "data" => null ]); } else { - header("Location: $path?error_status=$status&error_reason=$error"); + header("Location: $path" . (str_contains($path, "?") ? "&" : "?") . "error_status=$status&error_reason=$error"); } } -- cgit v1.2.3