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:
@@ -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(
|
||||
|
Reference in New Issue
Block a user