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

View File

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