From 14352da6bd61bc98fec15e6f03e31a7ce7f25318 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 22 Dec 2020 19:32:14 +0100 Subject: [PATCH] LSformElement::jsonCompositeAttribute: Fix PHP warning --- .../class/class.LSformElement_jsonCompositeAttribute.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/includes/class/class.LSformElement_jsonCompositeAttribute.php b/src/includes/class/class.LSformElement_jsonCompositeAttribute.php index eaa164ae..f4a89058 100644 --- a/src/includes/class/class.LSformElement_jsonCompositeAttribute.php +++ b/src/includes/class/class.LSformElement_jsonCompositeAttribute.php @@ -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)) {