diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-22 13:15:31 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-22 13:15:31 +0500 |
| commit | 460d12ab7bb93daa6b03300fefdfccefb6d32d01 (patch) | |
| tree | 9255b1a75f9cf31b4b6b87bcb1268a0b80df74fe /src/alert.php | |
| parent | bb05b244f95bb6f507c9e825efd4da4d3d93662b (diff) | |
upd: combined single_page and multiple_page into one + updated emote url
Diffstat (limited to 'src/alert.php')
| -rw-r--r-- | src/alert.php | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } } |
