We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5d5db8 commit a24422eCopy full SHA for a24422e
src/libraries/User.php
@@ -708,9 +708,8 @@ public function setVerified() {
708
`verified_datetime` = :dt
709
WHERE `id` = :user_id;
710
');
711
- $stmt->bindParam(
712
- ':dt', $verified_datetime->format( 'Y-m-d H:i:s' ), PDO::PARAM_STR
713
- );
+ $dt = $verified_datetime->format( 'Y-m-d H:i:s' );
+ $stmt->bindParam(':dt', $dt, PDO::PARAM_STR); // must be byref
714
$stmt->bindParam(':bits', $options_bitmask, PDO::PARAM_INT);
715
$stmt->bindParam(':user_id', $this->id, PDO::PARAM_INT);
716
$successful = $stmt->execute();
0 commit comments