Init DB\IO dbh with null to avoid any problems

There could have been some problems where the dbh var was not touched
even thought it was inited.
This commit is contained in:
Clemens Schwaighofer
2023-07-21 17:48:09 +09:00
parent 8497144053
commit 19458a4af0

View File

@@ -309,7 +309,7 @@ class IO
// basic vars
// the dbh handler, if disconnected by command is null, bool:false on error,
/** @var \PgSql\Connection|false|null */
private \PgSql\Connection|false|null $dbh;
private \PgSql\Connection|false|null $dbh = null;
/** @var bool DB_DEBUG ... (if set prints out debug msgs) */
private bool $db_debug = false;
/** @var string the DB connected to */