aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/postgres.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-03-07 08:52:59 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2011-03-07 08:52:59 -0500
commite5aa2c9ac112156b56db9c4b1d8fc2b6f6f79265 (patch)
tree0c0a45c501201c019d9358c32578804519161125 /phpBB/includes/db/postgres.php
parent40468a5adcd11628c123b54911919e533d2dbd28 (diff)
downloadforums-e5aa2c9ac112156b56db9c4b1d8fc2b6f6f79265.tar
forums-e5aa2c9ac112156b56db9c4b1d8fc2b6f6f79265.tar.gz
forums-e5aa2c9ac112156b56db9c4b1d8fc2b6f6f79265.tar.bz2
forums-e5aa2c9ac112156b56db9c4b1d8fc2b6f6f79265.tar.xz
forums-e5aa2c9ac112156b56db9c4b1d8fc2b6f6f79265.zip
[ticket/10057] Fixed usage of sql_error again.
PHPBB3-10057
Diffstat (limited to 'phpBB/includes/db/postgres.php')
-rw-r--r--phpBB/includes/db/postgres.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/includes/db/postgres.php b/phpBB/includes/db/postgres.php
index 78b6a75750..69f605fc47 100644
--- a/phpBB/includes/db/postgres.php
+++ b/phpBB/includes/db/postgres.php
@@ -89,7 +89,8 @@ class dbal_postgres extends dbal
{
if (!function_exists('pg_pconnect'))
{
- return $this->sql_error('pg_pconnect function does not exist, is pgsql extension installed?');
+ $this->connect_error = 'pg_pconnect function does not exist, is pgsql extension installed?';
+ return $this->sql_error('');
}
$collector = new phpbb_error_collector;
$collector->install();
@@ -99,7 +100,8 @@ class dbal_postgres extends dbal
{
if (!function_exists('pg_pconnect'))
{
- return $this->sql_error('pg_connect function does not exist, is pgsql extension installed?');
+ $this->connect_error = 'pg_connect function does not exist, is pgsql extension installed?';
+ return $this->sql_error('');
}
$collector = new phpbb_error_collector;
$collector->install();