https://github.com/owncloud/core/issues/836
This commit is contained in:
Frank Karlitschek 2012-12-12 16:27:37 +01:00
parent b8b64d6ffc
commit 4265419bbd
1 changed files with 1 additions and 2 deletions

View File

@ -98,8 +98,7 @@ class MDB2_Driver_sqlite3 extends MDB2_Driver_Common
if ($this->connection) {
$native_code = $this->connection->lastErrorCode();
}
$native_msg = $this->_lasterror
? html_entity_decode($this->_lasterror) : $this->connection->lastErrorMsg();
$native_msg = html_entity_decode($this->_lasterror);
// PHP 5.2+ prepends the function name to $php_errormsg, so we need
// this hack to work around it, per bug #9599.