Fix typo in DB constructor

This commit is contained in:
Alex Cabal 2024-04-26 13:17:18 -05:00
parent 7eaa400ae3
commit 265db89448

View file

@ -8,7 +8,7 @@ class DbConnection{
public int $QueryCount = 0;
public int $LastQueryAffectedRowCount = 0;
public function __construct(?string $defaultDatabase = null, string $host = 'localhost', ?string $user = null, string$password = '', bool $forceUtf8 = true, bool $require = true){
public function __construct(?string $defaultDatabase = null, string $host = 'localhost', ?string $user = null, string $password = '', bool $forceUtf8 = true, bool $require = true){
if($user === null){
// Get the user running the script for local socket login
$user = posix_getpwuid(posix_geteuid());