mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
- Needless regular expressions
git-svn-id: file:///svn/phpbb/trunk@5692 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
0f32198272
commit
aba2d59c88
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue