Skip to content

Commit

Permalink
Fix pass by reference error
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbennett committed Jan 25, 2020
1 parent e64724e commit 602f35f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/libraries/Packet.php
Original file line number Diff line number Diff line change
Expand Up @@ -848,11 +848,9 @@ public function update() {
$stmt->bindParam(':dt1', $this->created_datetime, PDO::PARAM_STR);
$stmt->bindParam(':edit_count', $this->edited_count, PDO::PARAM_INT);

if ( is_null( $this->edited_datetime )) {
$stmt->bindParam( ':dt2', null, PDO::PARAM_NULL );
} else {
$stmt->bindParam( ':dt2', $this->edited_datetime, PDO::PARAM_STR );
}
$stmt->bindParam(':dt2', $this->edited_datetime, (
is_null($this->edited_datetime) ? PDO::PARAM_NULL : PDO::PARAM_STR
));

$stmt->bindParam(
':direction', $this->packet_direction_id, PDO::PARAM_INT
Expand Down

0 comments on commit 602f35f

Please sign in to comment.