From c891e8d8c36ce084677b627ced5a238d8f736d83 Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Sun, 10 May 2026 16:27:41 +0100 Subject: Use BIT_INSTALL to block database access until database is populated --- includes/classes/BitSystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/classes/BitSystem.php b/includes/classes/BitSystem.php index 7af0304..5b6bb5f 100755 --- a/includes/classes/BitSystem.php +++ b/includes/classes/BitSystem.php @@ -207,7 +207,7 @@ class BitSystem extends BitSingleton { $whereClause = ' WHERE `package`=? '; } - if ( empty( $this->mConfig ) && $this->mDb->mDb && $this->mDb->tableExists('kernel_config') ) { + if ( empty( $this->mConfig ) && !defined( 'BIT_INSTALL' ) ) { $this->mConfig = []; $query = "SELECT `config_name` ,`config_value`, `package` FROM `" . BIT_DB_PREFIX . "kernel_config` " . $whereClause; if( $rs = $this->mDb->query( $query, $queryVars, -1, -1 ) ) { -- cgit v1.3