Skip to content

Commit 6feb90d

Browse files
committed
Use explicit null check
1 parent be04130 commit 6feb90d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Db.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public static function query(
112112
return $result;
113113
}
114114

115-
if ( $on_error ) {
115+
if ( $on_error !== null ) {
116116
if ( STATIC_DEPLOY_DEBUG ) {
117117
WsLog::d( 'Detected error in query: ' . $wpdb->last_error );
118118
}

0 commit comments

Comments
 (0)