nouveau module "models" dans l'environnement
[mtweb] / mw / env / modules / mw_env_urls.php
index 7bf6153..0f745a7 100644 (file)
@@ -41,8 +41,9 @@
           "wait" => $wait
         )
       );
-      if(!$wait && !headers_sent()){
-        header("Location: ".str_replace("&", "&", $url));
+      if(!headers_sent()){
+        if($wait) header_remove("Location");
+        else header("Location: ".str_replace("&", "&", $url));
       }
     }