Skip to content

Commit

Permalink
fixing a PHP7 only statement to be 5.6 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
wernerkrauss committed Jun 1, 2017
1 parent e03e7d9 commit e86cc55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/extensions/GroupSubsites.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e86cc55

Please sign in to comment.