We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e64724e commit 602f35fCopy full SHA for 602f35f
src/libraries/Packet.php
@@ -848,11 +848,9 @@ public function update() {
848
$stmt->bindParam(':dt1', $this->created_datetime, PDO::PARAM_STR);
849
$stmt->bindParam(':edit_count', $this->edited_count, PDO::PARAM_INT);
850
851
- if ( is_null( $this->edited_datetime )) {
852
- $stmt->bindParam( ':dt2', null, PDO::PARAM_NULL );
853
- } else {
854
- $stmt->bindParam( ':dt2', $this->edited_datetime, PDO::PARAM_STR );
855
- }
+ $stmt->bindParam(':dt2', $this->edited_datetime, (
+ is_null($this->edited_datetime) ? PDO::PARAM_NULL : PDO::PARAM_STR
+ ));
856
857
$stmt->bindParam(
858
':direction', $this->packet_direction_id, PDO::PARAM_INT
0 commit comments