Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ludicrousdb/includes/class-ludicrousdb.php
Original file line number Diff line number Diff line change
Expand Up @@ -1833,9 +1833,16 @@
// If there is an error then take note of it
if ( $this->dbh_type_check( $this->dbh ) ) {
$this->last_error = mysqli_error( $this->dbh );
} else {
$this->last_error = __( 'Unable to retrieve the error message from MySQL' );

Check failure on line 1837 in ludicrousdb/includes/class-ludicrousdb.php

View workflow job for this annotation

GitHub Actions / phpcs

Missing $domain parameter in function call to __().
}

if ( ! empty( $this->last_error ) ) {
// Clear insert_id on a subsequent failed insert.
if ( $this->insert_id && preg_match( '/^\s*(insert|replace)\s/i', $query ) ) {
$this->insert_id = 0;
}

$this->print_error( $this->last_error );
$retval = false;

Expand Down
Loading