summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-10 16:21:51 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-10 16:21:51 +0100
commitb463af3dd0d69bf659bd0820bd07bebd6358f74c (patch)
treeec5aa362286e9af0fc621509d06f2d5a02b5f6ad
parent35543b6ffcba43c48671c8b4a9229e19f77e1f30 (diff)
downloadliberty-b463af3dd0d69bf659bd0820bd07bebd6358f74c.tar.gz
liberty-b463af3dd0d69bf659bd0820bd07bebd6358f74c.tar.bz2
liberty-b463af3dd0d69bf659bd0820bd07bebd6358f74c.zip
Use BIT_INSTALL to block database access until database has been populated
-rwxr-xr-xincludes/classes/LibertySystem.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/classes/LibertySystem.php b/includes/classes/LibertySystem.php
index 159e4e8..5883041 100755
--- a/includes/classes/LibertySystem.php
+++ b/includes/classes/LibertySystem.php
@@ -594,7 +594,7 @@ class LibertySystem extends BitSingleton {
* @return void
**/
public function loadContentTypes( $pCacheTime=BIT_QUERY_CACHE_TIME ) {
- if ( $this->mDb->mDb && $this->mDb->tableExists( 'liberty_content_types' ) ) {
+ if ( !defined( 'BIT_INSTALL' ) ) {
if( $rs = $this->mDb->query( "SELECT * FROM `".BIT_DB_PREFIX."liberty_content_types`", null, BIT_QUERY_DEFAULT, BIT_QUERY_DEFAULT ) ) {
while( $row = $rs->fetchRow() ) {
// translate name