mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 19:54:12 +02:00
[ticket/10205] Rewrite _sql_error implementations to have a single return.
PHPBB3-10205
This commit is contained in:
@@ -362,18 +362,20 @@ class dbal_mssql_odbc extends dbal
|
||||
{
|
||||
if (function_exists('odbc_errormsg'))
|
||||
{
|
||||
return array(
|
||||
$error = array(
|
||||
'message' => @odbc_errormsg(),
|
||||
'code' => @odbc_error(),
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
return array(
|
||||
$error = array(
|
||||
'message' => $this->connect_error,
|
||||
'code' => '',
|
||||
);
|
||||
}
|
||||
|
||||
return $error;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user