mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
- Needless regular expressions
git-svn-id: file:///svn/phpbb/trunk@5692 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user