Skip to content

Commit

Permalink
Fixed bug with illegal string offset
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Jul 24, 2014
1 parent 6be51a7 commit 3107b40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MadeYourDay/Contao/CustomElements.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ protected function prepareSaveData($fieldPrefix, $fieldsConfig)
{
foreach ($fieldsConfig as $fieldName => $fieldConfig) {

if ($fieldConfig['inputType'] === 'list') {
if (isset($fieldConfig['inputType']) && $fieldConfig['inputType'] === 'list') {

// creates an empty array for a empty lists
$fieldData = $this->getNestedValueReference($fieldPrefix . $fieldName);
Expand Down Expand Up @@ -730,7 +730,7 @@ protected function createDcaMultiEdit($dc)
$standardFields = is_array($config['standardFields']) ? $config['standardFields'] : array();

foreach ($config['fields'] as $fieldName => $fieldConfig) {
if ($fieldConfig['inputType'] === 'standardField') {
if (isset($fieldConfig['inputType']) && $fieldConfig['inputType'] === 'standardField') {
$paletteFields[] = $fieldName;
}
}
Expand Down

0 comments on commit 3107b40

Please sign in to comment.