mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 19:29:58 +03:00
cast port to int
This commit is contained in:
parent
b0a5c404e7
commit
17b49a005e
1 changed files with 1 additions and 0 deletions
|
@ -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 = '';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue