1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/10205] Fix remaining db drivers.

PHPBB3-10205
This commit is contained in:
Oleg Pudeyev
2012-12-04 04:50:41 -05:00
parent 1a7e2211c3
commit 9f549e8249
5 changed files with 93 additions and 43 deletions

View File

@@ -360,10 +360,20 @@ class dbal_mssql_odbc extends dbal
*/
function _sql_error()
{
return array(
'message' => @odbc_errormsg(),
'code' => @odbc_error()
);
if (function_exists('odbc_errormsg'))
{
return array(
'message' => @odbc_errormsg(),
'code' => @odbc_error()
);
}
else
{
return array(
'message' => $this->connect_error,
'code' => '',
);
}
}
/**