diff options
| author | lsces <lester@lsces.co.uk> | 2026-05-08 14:05:55 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-05-08 14:05:55 +0100 |
| commit | 354cf0ef59a366797b1bbe9bdeffe80951bc9792 (patch) | |
| tree | 12e7171925469523e62acfd176fa3d8ed5fdf429 | |
| parent | 4f9bdf80cdd44e474d3890389d545c40aee50ca5 (diff) | |
| download | languages-5-php84.tar.gz languages-5-php84.tar.bz2 languages-5-php84.zip | |
Allow loading of BitLanguage while database is being built, check table exists before trying to use itV5-php84
| -rwxr-xr-x | includes/classes/BitLanguage.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/classes/BitLanguage.php b/includes/classes/BitLanguage.php index 810df73..31640ae 100755 --- a/includes/classes/BitLanguage.php +++ b/includes/classes/BitLanguage.php @@ -37,7 +37,7 @@ class BitLanguage extends BitSingleton { } public function load() { - if( parent::load() && $this->mDb->tableExists( 'i18n_languages' ) ) { + if( parent::load() && $this->mDb->mDb && $this->mDb->tableExists( 'i18n_languages' ) ) { $this->mLanguageList = $this->listLanguages(); $this->autoSetLanguage(); } |
