mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Un-b0rked ACL options caching, small general fixes
git-svn-id: file:///svn/phpbb/trunk@3338 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -397,6 +397,11 @@ class sql_db
|
||||
|
||||
function sql_error($sql = '')
|
||||
{
|
||||
$result = array(
|
||||
'message' => @mysql_error(),
|
||||
'code' => @mysql_errno()
|
||||
);
|
||||
|
||||
if ( !$this->return_on_error )
|
||||
{
|
||||
if ( $this->transaction )
|
||||
@@ -411,8 +416,6 @@ class sql_db
|
||||
trigger_error($message, E_USER_ERROR);
|
||||
}
|
||||
|
||||
$result['message'] = @mysql_error();
|
||||
$result['code'] = @mysql_errno();
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user