Skip to content

Commit

Permalink
revised insertUser to use 0000-00-00 rather than null for default exp…
Browse files Browse the repository at this point in the history
…iration
  • Loading branch information
RocketMan committed Jun 11, 2019
1 parent 5724b62 commit 2124c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/impl/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public function insertUser($user, $password, $realname, $groups, $expiration) {
$stmt->bindValue(2, $salt.md5($salt.$password));
$stmt->bindValue(3, $realname);
$stmt->bindValue(4, $groups);
$stmt->bindValue(5, $expiration?$expiration:null);
$stmt->bindValue(5, $expiration?$expiration:'0000-00-00');
$stmt->execute();
return ($stmt->rowCount() > 0);
}
Expand Down

0 comments on commit 2124c93

Please sign in to comment.