Skip to content

Commit 13ce33c

Browse files
author
ebela
committed
Fix.
Can set zero lenght password on constructor
1 parent 528f91f commit 13ce33c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/db_mysql.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function __construct($host = NULL , $user = NULL, $pass = NULL, $database
7777
$this->dbPort = $port ? $port : $conf['db_port'];
7878
$this->dbName = $database ? $database : $conf['db_database'];
7979
$this->dbUser = $user ? $user : $conf['db_user'];
80-
$this->dbPass = $pass ? $pass : $conf['db_password'];
80+
$this->dbPass = ( $pass !== NULL ) ? $pass : $conf['db_password'];
8181
$this->dbCharset = $conf['db_charset'];
8282
$this->dbClientFlags = ($flags !== NULL) ? $flags : $conf['db_client_flags'];
8383
$this->_iConnId = mysqli_init();

0 commit comments

Comments
 (0)