diff --git a/inc/Database/Replace.php b/inc/Database/Replace.php index c122f0e..9c92af2 100644 --- a/inc/Database/Replace.php +++ b/inc/Database/Replace.php @@ -260,7 +260,7 @@ public function replace_values( $search = '', $replace = '', $table, $csv = null continue; } - if ( $update && ! empty( $where_sql ) ) { + if ( $update && ! empty( $where_sql ) && !empty( $update_sql ) ) { // If there are changes to make, run the query. $result = $this->dbm->update( $table, $update_sql, $where_sql );