diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-01-25 21:01:52 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-01-25 21:01:52 +0000 |
commit | 90385cd79a550b4ac08e10e3b8a01abc37965bd4 (patch) | |
tree | 87838a4580032f81b981a0867cd2b766d3d81ab6 /phpBB/includes/db/mysql.php | |
parent | 964615eb0799b2d20d9578af9e328fb1a348d8da (diff) | |
download | forums-90385cd79a550b4ac08e10e3b8a01abc37965bd4.tar forums-90385cd79a550b4ac08e10e3b8a01abc37965bd4.tar.gz forums-90385cd79a550b4ac08e10e3b8a01abc37965bd4.tar.bz2 forums-90385cd79a550b4ac08e10e3b8a01abc37965bd4.tar.xz forums-90385cd79a550b4ac08e10e3b8a01abc37965bd4.zip |
- moved add_log out of functions_admin (this file should only be included in admin/admin-related pages)
- fixed cookie based topic tracking
- added missing config variables
- other minor things
git-svn-id: file:///svn/phpbb/trunk@5494 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db/mysql.php')
-rw-r--r-- | phpBB/includes/db/mysql.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/db/mysql.php b/phpBB/includes/db/mysql.php index 57aad449d4..36dd73204c 100644 --- a/phpBB/includes/db/mysql.php +++ b/phpBB/includes/db/mysql.php @@ -285,6 +285,14 @@ class dbal_mysql extends dbal */ function _sql_error() { + if (!$this->db_connect_id) + { + return array( + 'message' => @mysql_error(), + 'code' => @mysql_errno() + ); + } + return array( 'message' => @mysql_error($this->db_connect_id), 'code' => @mysql_errno($this->db_connect_id) |