This commit is contained in:
Hugo Chinchilla Carbonell 2025-04-21 11:48:58 +00:00 committed by GitHub
commit 435426a2ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,6 +45,7 @@ function pwg_db_connect($host, $user, $password, $database)
elseif (strpos($host, ':') !== false) elseif (strpos($host, ':') !== false)
{ {
list($host, $port) = explode(':', $host); list($host, $port) = explode(':', $host);
$port = (int) $port;
} }
$dbname = ''; $dbname = '';