Skip to content

Commit

Permalink
Change PHP keywords to comply with PSR2 (Chocobozzz#139)
Browse files Browse the repository at this point in the history
Signed-off-by: CodeLingoBot <[email protected]>
  • Loading branch information
mullikine authored and Chocobozzz committed Apr 6, 2019
1 parent 2e4643d commit 5e23bd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/grids.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@
$phone = "";
$online = 0;
$enable = 1;
$start = NULL;
$end = NULL;
$start = 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)
VALUES (?, ?, ?, ?, ?, ?, ?, ?)');
Expand Down Expand Up @@ -172,7 +172,7 @@
$value = hashPass($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
Expand Down

0 comments on commit 5e23bd9

Please sign in to comment.