PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.0
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.0
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
← All changes | back/Core/AcymClass.php +3 -2 11.0.1 → 11.1.0 View file →
@@ -180,9 +180,9 @@
180 180 }
181 181 }
182 182
183 183 foreach ($this->jsonColumns as $oneColumn) {
184 - if (!isset($element->$oneColumn)) {
184 + if (!property_exists($element, $oneColumn)) {
185 185 continue;
186 186 }
187 187
188 188 if (empty($element->$oneColumn)) {
@@ -187,9 +187,10 @@
187 187
188 188 if (empty($element->$oneColumn)) {
189 189 $element->$oneColumn = [];
190 190 } elseif (is_string($element->$oneColumn)) {
191 - $element->$oneColumn = json_decode($element->$oneColumn, true);
191 + $decodedColumn = json_decode($element->$oneColumn, true);
192 + $element->$oneColumn = is_array($decodedColumn) ? $decodedColumn : [];
192 193 }
193 194 }
194 195 }
195 196 }