Browse code

Fix wrong clear option handling in getAttributesFromDca hook

Benjamin Roth authored on02/08/2023 11:20:38
Showing1 changed files
... ...
@@ -67,7 +67,7 @@ class GetAttributesFromDca
67 67
             $arrAttributes['class'].= ' ' . $arrAttributes['eSM_fl_class'];
68 68
         }
69 69
 
70
-        if (isset($arrAttributes['eSM_fl_width']))
70
+        if (isset($arrAttributes['eSM_fl_clear']) && $arrAttributes['eSM_fl_clear'])
71 71
         {
72 72
             $arrAttributes['class'].= ' clr';
73 73
         }
... ...
@@ -84,7 +84,6 @@ class GetAttributesFromDca
84 84
                 $arrAttributes['class'].= ' ' . $arrAttributes['eSM_fl_alignment'].'_alignment';
85 85
             }
86 86
         }
87
-
88 87
         return $arrAttributes;
89 88
     }
90 89
 }