From dfe1ba5c6a89fbe6115c5e8bad9c18f5f3245b94 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Tue, 15 Feb 2022 15:05:43 +1300 Subject: [PATCH] FIX replace in_array check with `hasTable` check. in_array is case-sensitive and may not detect that a table exists when using lowercase format --- src/Model/Subsite.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Model/Subsite.php b/src/Model/Subsite.php index ab3221c..60bfb3f 100644 --- a/src/Model/Subsite.php +++ b/src/Model/Subsite.php @@ -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; }