diff --git a/src/includes/class/class.LSform.php b/src/includes/class/class.LSform.php index b9f3f113..e13b2ee5 100644 --- a/src/includes/class/class.LSform.php +++ b/src/includes/class/class.LSform.php @@ -150,7 +150,7 @@ class LSform extends LSlog_staticLoggerClass { } $fields = array(); - if (!isset($this -> dataEntryFormConfig['displayedElements']) && !is_array($this -> dataEntryFormConfig['displayedElements'])) { + if (!isset($this -> dataEntryFormConfig['displayedElements']) || !is_array($this -> dataEntryFormConfig['displayedElements'])) { foreach($this -> elements as $element) { $field = array(); $field = $element -> getDisplay();