use sesion_write_close before redirects ... should solve some login problems user...
[platal.git] / htdocs / listes / index.php
index dee288d..13bf1b1 100644 (file)
@@ -28,11 +28,11 @@ $client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'));
 
 if(Get::has('del')) {
     $client->unsubscribe(Get::get('del'));
-    header('Location: index.php');
+    redirect('index.php');
 }
 if(Get::has('add')) {
     $client->subscribe(Get::get('add'));
-    header('Location: index.php');
+    redirect('index.php');
 }
 if(Post::has('promo_add')) {
     $promo = Post::getInt('promo_add');