aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/postgres.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/db/postgres.php')
-rw-r--r--phpBB/includes/db/postgres.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/db/postgres.php b/phpBB/includes/db/postgres.php
index e09793bdaa..d4ec19d421 100644
--- a/phpBB/includes/db/postgres.php
+++ b/phpBB/includes/db/postgres.php
@@ -52,9 +52,9 @@ class dbal_postgres extends dbal
if ($sqlserver)
{
- if (ereg(":", $sqlserver))
+ if (strpos($sqlserver, ':') !== false)
{
- list($sqlserver, $sqlport) = split(":", $sqlserver);
+ list($sqlserver, $sqlport) = explode(':', $sqlserver);
$this->connect_string .= "host=$sqlserver port=$sqlport ";
}
else