1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 00:07:44 +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

@@ -439,10 +439,20 @@ class dbal_mysql extends dbal
{
if (!$this->db_connect_id)
{
return array(
'message' => @mysql_error(),
'code' => @mysql_errno()
);
if (function_exists('mysql_error'))
{
return array(
'message' => @mysql_error(),
'code' => @mysql_errno()
);
}
else
{
return array(
'message' => $this->connect_error,
'code' => '',
);
}
}
return array(