X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=63633b022bcbb411401e5a2e02bc86e89d66af45;hb=8acef003f115dedfe9d130cf306f63f5a0da08c3;hp=8f37200644000085749f7c776b3cf8c5e281608d;hpb=fff6ce4082b64db5d470acf63ecb2730ef2b5e8a;p=mirrors%2FSokoMan.git
diff --git a/index.php b/index.php
index 8f37200..63633b0 100755
--- a/index.php
+++ b/index.php
@@ -181,7 +181,11 @@ class Sklad_HTML extends HTML {
-
+
@@ -622,7 +626,8 @@ class Sklad_UI {
}
function post_redirect_get($location, $message='', $error=false) {
- $location = $this->html->internal_url($location).'?message='.urlencode($message);
+ $url_args = $message != '' ? '?message='.urlencode($message) : '';
+ $location = $this->html->internal_url($location).$url_args;
header('Location: '.$location);
if($error) trigger_error($message);
$location=htmlspecialchars($location);