simplify the design, drop login.php for now, it will come back (maybe) at some point...
[platal.git] / htdocs.net / admin.php
index f8a928e..8d7c59d 100644 (file)
@@ -39,7 +39,7 @@
 
     if (Post::has('diminutif')) {
         $globals->xdb->query('INSERT INTO groupex.asso (id,diminutif) VALUES(NULL,{?})', Post::get('diminutif'));
-        header('Location: '.Post::get('diminutif').'/edit.php');
+        redirect(Post::get('diminutif').'/edit.php');
     }
 
     $res = $globals->xdb->query('SELECT nom,diminutif FROM groupex.asso ORDER by NOM');