mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-22 18:08:54 +00:00
[ticket/16965] Allow empty value as default database server name on installing
PHPBB3-16965
This commit is contained in:
parent
510a923ba9
commit
ae799c57c0
1 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ class connection_parameter_factory
|
|||
*/
|
||||
public static function get_configuration(
|
||||
string $driver,
|
||||
string $host,
|
||||
?string $host = null,
|
||||
?string $user = null,
|
||||
?string $password = null,
|
||||
?string $name = null,
|
||||
|
@ -73,7 +73,7 @@ class connection_parameter_factory
|
|||
*/
|
||||
private static function build_connection_parameters(
|
||||
array $params,
|
||||
string $host,
|
||||
?string $host = null,
|
||||
?string $user = null,
|
||||
?string $password = null,
|
||||
?string $name = null,
|
||||
|
@ -86,7 +86,7 @@ class connection_parameter_factory
|
|||
);
|
||||
}
|
||||
|
||||
if (empty($host) || empty($user) || empty($name))
|
||||
if (empty($user) || empty($name))
|
||||
{
|
||||
throw new InvalidArgumentException('Required database parameter is not set.');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue