1
0
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:
Ludovic Arnaud
2003-01-20 05:12:38 +00:00
parent b2721cca0c
commit 458b9b50ec
15 changed files with 85 additions and 63 deletions

View File

@@ -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;
}