Skip to content

Commit

Permalink
Fix for php 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dvlpp committed Feb 9, 2018
1 parent a1d1ed5 commit 738018e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/cms/partials/formFieldsRow.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
if(strpos($field, ":")) {
list($field, $size) = explode(":", $field);
} else {
$size = 12/sizeof($fields);
$size = 12/sizeof((array)$fields);
}
?>

Expand Down
2 changes: 1 addition & 1 deletion src/Dvlpp/Sharp/Form/Fields/ListField.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ protected function createItemField($item)
if(strpos($itemFieldKey, ":")) {
list($itemFieldKey, $size) = explode(":", $itemFieldKey);
} else {
$size = 12/sizeof($itemFields);
$size = 12/sizeof((array)$itemFields);
}

$itemField = $this->field->findItemField($itemFieldKey);
Expand Down

0 comments on commit 738018e

Please sign in to comment.