From eba1ef9c591b4f0b61f33b9b3edab59a18dd7d32 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Fri, 21 Jul 2023 17:48:09 +0900 Subject: [PATCH] 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. --- www/lib/CoreLibs/DB/IO.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/lib/CoreLibs/DB/IO.php b/www/lib/CoreLibs/DB/IO.php index 3a9d885d..d36453cd 100644 --- a/www/lib/CoreLibs/DB/IO.php +++ b/www/lib/CoreLibs/DB/IO.php @@ -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 */