Merge pull request #10281 from creative-commoners/pulls/4/p81fix

ENH Various fixes for PHP 8.1 compatibility
This commit is contained in:
Guy Sartorelli 2022-04-27 10:01:07 +12:00 committed by GitHub
commit 6ced576b2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,8 @@ class MySQLiConnector extends DBConnector
try {
$success = $statement->prepare($sql);
} catch (mysqli_sql_exception $e) {
throw new DatabaseException($e->getMessage());
$success = false;
$this->databaseError($e->getMessage(), E_USER_ERROR, $sql);
}
return $statement;
}