mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Merge pull request #476 from wilr/wilr-patch-1
FIX replace `in_array` check with `hasTable` check
This commit is contained in:
commit
5c3d000b9b
@ -281,7 +281,8 @@ class Subsite extends DataObject
|
||||
|
||||
/** @skipUpgrade */
|
||||
$domainTableName = $schema->tableName(SubsiteDomain::class);
|
||||
if (!in_array($domainTableName, DB::table_list())) {
|
||||
|
||||
if (!DB::get_schema()->hasTable($domainTableName)) {
|
||||
// Table hasn't been created yet. Might be a dev/build, skip.
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user