$build = DI::config()->get('system', 'build');
if (empty($build)) {
- // legacy option - check if there's something in the Config table
- if (DBStructure::existsTable('config')) {
- $dbConfig = DBA::selectFirst('config', ['v'], ['cat' => 'system', 'k' => 'build']);
- if (!empty($dbConfig)) {
- $build = $dbConfig['v'];
- }
+ $dbConfig = DBA::selectFirst('config', ['v'], ['cat' => 'system', 'k' => 'build']);
+ if (!empty($dbConfig)) {
+ $build = $dbConfig['v'];
}
if (empty($build) || ($build > DB_UPDATE_VERSION)) {