From e86cc55ba60dd7b7a4edea427a1aff283dbb816a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Werner=20M=2E=20Krau=C3=9F?= Date: Thu, 1 Jun 2017 14:43:25 +0200 Subject: [PATCH] fixing a PHP7 only statement to be 5.6 compatible --- code/extensions/GroupSubsites.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/extensions/GroupSubsites.php b/code/extensions/GroupSubsites.php index 41667415..cdb18c63 100644 --- a/code/extensions/GroupSubsites.php +++ b/code/extensions/GroupSubsites.php @@ -46,7 +46,8 @@ public function requireDefaultRecords() return; } // Migration for Group.SubsiteID data from when Groups only had a single subsite - $schema = $this->owner::getSchema(); + $ownerClass = get_class($this->owner); + $schema = $ownerClass::getSchema(); $groupFields = DB::field_list($schema->tableName(Group::class)); // Detection of SubsiteID field is the trigger for old-style-subsiteID migration