From 5e23bd9e2ea3a39ab958aae59d40955c2a401908 Mon Sep 17 00:00:00 2001 From: Shane Mulligan Date: Sat, 6 Apr 2019 20:35:19 +1300 Subject: [PATCH] Change PHP keywords to comply with PSR2 (#139) Signed-off-by: CodeLingoBot --- include/grids.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/grids.php b/include/grids.php index abd658d..2f04363 100644 --- a/include/grids.php +++ b/include/grids.php @@ -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 (?, ?, ?, ?, ?, ?, ?, ?)'); @@ -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