Skip to content

Commit d88adc2

Browse files
committed
Fix pass by reference error
1 parent ee4bccd commit d88adc2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/libraries/Server.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,14 +365,16 @@ public function save() {
365365
$stmt->bindParam( ':status', $this->status_bitmask, PDO::PARAM_INT );
366366
$stmt->bindParam( ':type_id', $this->type_id, PDO::PARAM_INT );
367367
if ( is_null( $this->updated_datetime )) {
368-
$stmt->bindParam( ':updated_dt', null, PDO::PARAM_NULL );
368+
$stmt->bindParam(
369+
':updated_dt', $this->updated_datetime, PDO::PARAM_NULL
370+
);
369371
} else {
370372
$stmt->bindParam(
371373
':updated_dt', $this->updated_datetime, PDO::PARAM_STR
372374
);
373375
}
374376
if ( is_null( $this->user_id )) {
375-
$stmt->bindParam( ':user_id', null, PDO::PARAM_NULL );
377+
$stmt->bindParam( ':user_id', $this->user_id, PDO::PARAM_NULL );
376378
} else {
377379
$stmt->bindParam( ':user_id', $this->user_id, PDO::PARAM_INT );
378380
}

0 commit comments

Comments
 (0)