bug 420, nom d'epouse sur le trombi promo
[platal.git] / htdocs.net / groupe / edit.php
index 2532521..dced958 100644 (file)
@@ -5,7 +5,7 @@
 
     if (Post::has('submit')) {
         if (has_perms()) {
-            if (strstr(Post::get('mail_domain'), '.') === false) {
+            if (Post::get('mail_domain') != "" && (strstr(Post::get('mail_domain'), '.') === false)) {
                 $page->trig_run("le domaine doit ĂȘtre un FQDN (aucune modif effectuĂ©e) !!!");
             }
             $globals->xdb->execute(
@@ -34,7 +34,7 @@
             $globals->xdb->execute('UPDATE groupex.asso SET logo={?}, logo_mime={?} WHERE id={?}', $logo, $mime, $globals->asso('id'));
         }
 
-        header('Location: ../'.Post::get('diminutif', $globals->asso('diminutif')).'/edit.php');
+        redirect('../'.Post::get('diminutif', $globals->asso('diminutif')).'/edit.php');
     }
 
     if (has_perms()) {