Skip to content

Commit

Permalink
Check whether $arrData['eval'] is set in the getAttributesFromDca() m…
Browse files Browse the repository at this point in the history
…ethod (see #1402).
  • Loading branch information
leofeyer committed Mar 1, 2018
1 parent 6c483cd commit aa00b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/contao/library/Contao/Widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -1309,7 +1309,7 @@ protected function isValidOption($varInput)
*/
public static function getAttributesFromDca($arrData, $strName, $varValue=null, $strField='', $strTable='', $objDca=null)
{
$arrAttributes = $arrData['eval'];
$arrAttributes = isset($arrData['eval']) ? $arrData['eval'] : array();

$arrAttributes['id'] = $strName;
$arrAttributes['name'] = $strName;
Expand Down

0 comments on commit aa00b1c

Please sign in to comment.