summaryrefslogtreecommitdiff
path: root/src/alert.php
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-04-22 13:15:31 +0500
committerilotterytea <iltsu@alright.party>2025-04-22 13:15:31 +0500
commit460d12ab7bb93daa6b03300fefdfccefb6d32d01 (patch)
tree9255b1a75f9cf31b4b6b87bcb1268a0b80df74fe /src/alert.php
parentbb05b244f95bb6f507c9e825efd4da4d3d93662b (diff)
upd: combined single_page and multiple_page into one + updated emote url
Diffstat (limited to 'src/alert.php')
-rw-r--r--src/alert.php2
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");
}
}