LSformElement::jsonCompositeAttribute: Fix PHP warning

This commit is contained in:
Benjamin Renard 2020-12-22 19:32:14 +01:00
parent 514a2eb0fd
commit 14352da6bd

View file

@ -248,7 +248,7 @@ class LSformElement_jsonCompositeAttribute extends LSformElement {
$errors[]=getFData(_('Invalid value "%{value}" for component %{component}.'),array('value' => $val, 'component' => __($cconf['label'])));
}
}
if (is_array($cconf['check_data'])) {
if (isset($cconf['check_data']) && is_array($cconf['check_data'])) {
foreach($cconf['check_data'] as $ruleType => $rconf) {
$className='LSformRule_'.$ruleType;
if (LSsession::loadLSclass($className)) {