From 0b2ae98489fb282821ae08ba79cac2d429b4a347 Mon Sep 17 00:00:00 2001 From: Alejandro Mostajo Date: Thu, 24 Oct 2019 21:06:34 -0600 Subject: [PATCH] Update QueryBuilder.php Codacy code fixes. --- src/QueryBuilder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/QueryBuilder.php b/src/QueryBuilder.php index f671119..2e31247 100644 --- a/src/QueryBuilder.php +++ b/src/QueryBuilder.php @@ -11,7 +11,7 @@ * @author 10 Quality * @license MIT * @package wp-query-builder - * @version 1.0.5.1 + * @version 1.0.5.2 */ class QueryBuilder { @@ -146,7 +146,7 @@ public function where( $args ) ? '`' . $value['key'] . '`' : ( is_array( $arg_value ) ? ( '(\'' . implode( '\',\'', $arg_value ) . '\')' ) - : ( is_null( $arg_value ) + : ( $arg_value === null ? 'null' : $wpdb->prepare( is_numeric( $arg_value ) ? '%d' : '%s' , $arg_value ) )