projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adds XSRF protection to the Events module.
[platal.git]
/
modules
/
register.php
diff --git
a/modules/register.php
b/modules/register.php
index
43dc9e9
..
2b04a7e
100644
(file)
--- a/
modules/register.php
+++ b/
modules/register.php
@@
-175,7
+175,7
@@
class RegisterModule extends PLModule
}
}
if ($sub_state['watch']) {
}
}
if ($sub_state['watch']) {
- $al
ter
.= "Inscription d'un utilisateur surveillé - ";
+ $al
ert
.= "Inscription d'un utilisateur surveillé - ";
}
if (check_ip('unsafe')) {
}
if (check_ip('unsafe')) {
@@
-214,7
+214,7
@@
class RegisterModule extends PLModule
}
$_SESSION['sub_state'] = $sub_state;
}
$_SESSION['sub_state'] = $sub_state;
- if (
$alert
) {
+ if (
!empty($alert)
) {
send_warning_mail($alert);
}
$page->changeTpl('register/step'.intval($sub_state['step']).'.tpl');
send_warning_mail($alert);
}
$page->changeTpl('register/step'.intval($sub_state['step']).'.tpl');