Commit 1269f527 authored by Marc Egger's avatar Marc Egger
Browse files

Database.php: fix CodeException

parent 2d65750b
Pipeline #2091 passed with stages
in 3 minutes and 2 seconds
......@@ -972,7 +972,7 @@ class Database {
if (false === $executed) {
$errorMsg[ERROR_MESSAGE_TO_USER] = 'SQL Error.';
$errorMsg[ERROR_MESSAGE_TO_DEVELOPER] = "Error playing multi query: " . $sqlStatements;
throw new \CodeException($errorMsg, ERROR_PLAY_SQL_MULTIQUERY);
throw new \CodeException(json_encode($errorMsg), ERROR_PLAY_SQL_MULTIQUERY);
}
// discard all results: this is important - if missed, following calls on $mysqli will fail.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment