Skip to content

Commit

Permalink
more php 5.3 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Jan 13, 2016
1 parent 1a1b092 commit d6033e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion supertable/variables/SuperTableVariable.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public function getRelatedElements($params = null)

// Get the Super Table field and associated block type
$superTableField = craft()->fields->getFieldByHandle($superTableFieldHandle);
$superTableBlockType = craft()->superTable->getBlockTypesByFieldId($superTableField->id)[0];
$superTableBlockTypes = craft()->superTable->getBlockTypesByFieldId($superTableField->id);
$superTableBlockType = $superTableBlockTypes[0];

// Loop the fields on the block type and save the first one that matches our handle
$fieldId = false;
Expand Down

0 comments on commit d6033e0

Please sign in to comment.