| @@ -56,15 +56,15 @@ | ||
| 56 | 56 | public function getAtomicCls($element) |
| 57 | 57 | { |
| 58 | 58 | $meaningfulElementClass = "bf-{$this->getMeaningfullElementClass($element)}"; |
| 59 | 59 | if (empty($this->_fld) && empty($this->_fk)) { |
| 60 | - if (property_exists($this->_form_atomic_Cls_map, ".$element")) { | |
| 60 | + if (is_object($this->_form_atomic_Cls_map) && property_exists($this->_form_atomic_Cls_map, ".$element")) { | |
| 61 | 61 | $getAtomicCls = $this->_form_atomic_Cls_map->{".$element"}; |
| 62 | 62 | return implode(' ', $getAtomicCls) . " {$element} {$meaningfulElementClass}"; |
| 63 | 63 | } |
| 64 | 64 | return "$element {$meaningfulElementClass}"; |
| 65 | 65 | } |
| 66 | - if ('advanced-file-up' === $this->_fld->typ && isset($this->_form_atomic_Cls_map->{".$element"})) { | |
| 66 | + if (isset($this->_fld->typ) && 'advanced-file-up' === $this->_fld->typ && isset($this->_form_atomic_Cls_map->{".$element"})) { | |
| 67 | 67 | $getAtomicCls = $this->_form_atomic_Cls_map->{".$element"}; |
| 68 | 68 | return implode(' ', $getAtomicCls) . " {$this->_fk}-{$element} {$meaningfulElementClass}"; |
| 69 | 69 | } |
| 70 | 70 | $fieldElementCls = ".{$this->_fk}-{$element}"; |