Skip to content

Commit

Permalink
Merge branch 'develop' into phoenix
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbennett committed Aug 23, 2019
2 parents bc93356 + a24422e commit 5e3ecc2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/libraries/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -708,9 +708,8 @@ public function setVerified() {
`verified_datetime` = :dt
WHERE `id` = :user_id;
');
$stmt->bindParam(
':dt', $verified_datetime->format( 'Y-m-d H:i:s' ), PDO::PARAM_STR
);
$dt = $verified_datetime->format( 'Y-m-d H:i:s' );
$stmt->bindParam(':dt', $dt, PDO::PARAM_STR); // must be byref
$stmt->bindParam(':bits', $options_bitmask, PDO::PARAM_INT);
$stmt->bindParam(':user_id', $this->id, PDO::PARAM_INT);
$successful = $stmt->execute();
Expand Down

0 comments on commit 5e3ecc2

Please sign in to comment.