mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/10205] Rewrite _sql_error implementations to have a single return.
PHPBB3-10205
This commit is contained in:
@@ -302,18 +302,20 @@ class dbal_sqlite extends dbal
|
||||
{
|
||||
if (function_exists('sqlite_error_string'))
|
||||
{
|
||||
return array(
|
||||
$error = array(
|
||||
'message' => @sqlite_error_string(@sqlite_last_error($this->db_connect_id)),
|
||||
'code' => @sqlite_last_error($this->db_connect_id),
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
return array(
|
||||
$error = array(
|
||||
'message' => $this->connect_error,
|
||||
'code' => '',
|
||||
);
|
||||
}
|
||||
|
||||
return $error;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user