Merge branch 'platal-0.9.17'
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 23 Jun 2008 16:12:21 +0000 (18:12 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 23 Jun 2008 16:12:21 +0000 (18:12 +0200)
modules/register.php

index 1276540..04f4ffc 100644 (file)
@@ -175,7 +175,7 @@ class RegisterModule extends PLModule
                         }
                     }
                     if ($sub_state['watch']) {
-                        $alter .= "Inscription d'un utilisateur surveillé - ";
+                        $alert .= "Inscription d'un utilisateur surveillé - ";
                     }
 
                     if (check_ip('unsafe')) {
@@ -214,7 +214,7 @@ class RegisterModule extends PLModule
         }
 
         $_SESSION['sub_state'] = $sub_state;
-        if ($alert) {
+        if (!empty($alert)) {
             send_warning_mail($alert);
         }
         $page->changeTpl('register/step'.intval($sub_state['step']).'.tpl');