mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 13:12:41 +00:00
Work around more MySQL stupidity
This commit is contained in:
parent
5cfa01f4d5
commit
6b7257a6c4
1 changed files with 2 additions and 2 deletions
|
@ -16,9 +16,9 @@ trait PDOError {
|
|||
$err = $this->db->errorInfo();
|
||||
}
|
||||
if ($err[0] === "HY000") {
|
||||
return static::buildEngineException($err[1], $err[2]);
|
||||
return static::buildEngineException((string) $err[1], (string) $err[2]);
|
||||
} else {
|
||||
return static::buildStandardException($err[0], $err[2]);
|
||||
return static::buildStandardException((string) $err[0], (string) $err[2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue