diff --git a/resources/views/cms/partials/formFieldsRow.blade.php b/resources/views/cms/partials/formFieldsRow.blade.php index 21b02cb..b67e5c6 100644 --- a/resources/views/cms/partials/formFieldsRow.blade.php +++ b/resources/views/cms/partials/formFieldsRow.blade.php @@ -6,7 +6,7 @@ if(strpos($field, ":")) { list($field, $size) = explode(":", $field); } else { - $size = 12/sizeof($fields); + $size = 12/sizeof((array)$fields); } ?> diff --git a/src/Dvlpp/Sharp/Form/Fields/ListField.php b/src/Dvlpp/Sharp/Form/Fields/ListField.php index bca230c..e667b51 100644 --- a/src/Dvlpp/Sharp/Form/Fields/ListField.php +++ b/src/Dvlpp/Sharp/Form/Fields/ListField.php @@ -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);