Change PHP keywords to comply with PSR2 (#139)
Signed-off-by: CodeLingoBot <bot@codelingo.io>
This commit is contained in:
parent
2e4643d5cf
commit
5e23bd9e2e
@ -136,8 +136,8 @@
|
|||||||
$phone = "";
|
$phone = "";
|
||||||
$online = 0;
|
$online = 0;
|
||||||
$enable = 1;
|
$enable = 1;
|
||||||
$start = NULL;
|
$start = null;
|
||||||
$end = NULL;
|
$end = null;
|
||||||
|
|
||||||
$req = $bdd->prepare('INSERT INTO user (user_id, user_pass, user_mail, user_phone, user_online, user_enable, user_start_date, user_end_date)
|
$req = $bdd->prepare('INSERT INTO user (user_id, user_pass, user_mail, user_phone, user_online, user_enable, user_start_date, user_end_date)
|
||||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?)');
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?)');
|
||||||
@ -172,7 +172,7 @@
|
|||||||
$value = hashPass($value);
|
$value = hashPass($value);
|
||||||
}
|
}
|
||||||
else if (($field === 'user_start_date' || $field === 'user_end_date') && $value === '') {
|
else if (($field === 'user_start_date' || $field === 'user_end_date') && $value === '') {
|
||||||
$value = NULL;
|
$value = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// /!\ SQL injection: field was checked with in_array function
|
// /!\ SQL injection: field was checked with in_array function
|
||||||
|
Loading…
Reference in New Issue
Block a user