From: Florent Bruneau Date: Mon, 23 Jun 2008 16:11:13 +0000 (+0200) Subject: Typo and better test. X-Git-Tag: xorg/0.9.16~1 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=4653799f172695edf377834c3482e076cab9394e;p=platal.git Typo and better test. Signed-off-by: Florent Bruneau --- diff --git a/modules/register.php b/modules/register.php index 1af07e5..d62732f 100644 --- a/modules/register.php +++ b/modules/register.php @@ -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')) { @@ -213,7 +213,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');