Vylepseni chybovejch hlasek
[mirrors/SokoMan.git] / index.php
index a7059586ba1c7bbe37b6f3b8fa3b87324a264006..903b68328e248dfbcb92c619e95fc1039bbc54ff 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -1015,7 +1015,8 @@ class Sklad_UI {
 
        function post_redirect_get($location, $message='', $error=false, $translate=true) {
                $messaget = $translate ? T($message) : $message;
-               $url_args = $messaget != '' ? '?message='.urlencode($messaget) : '';
+               $separator = preg_match('/\?/', $location) ? '&' : '?';
+               $url_args = $messaget != '' ? $separator.'message='.urlencode($messaget) : '';
                $location = $this->html->internal_url($location).$url_args;
                header('Location: '.$location);
                if($error) trigger_error($message);
This page took 0.125594 seconds and 4 git commands to generate.