fixing a PHP7 only statement to be 5.6 compatible

This commit is contained in:
Werner M. Krauß 2017-06-01 14:43:25 +02:00
parent e03e7d9ce9
commit e86cc55ba6
1 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,8 @@ class GroupSubsites extends DataExtension implements PermissionProvider
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