Skip to content

Commit

Permalink
Fix deprecated functionality: explode(): passing null to parameter #2
Browse files Browse the repository at this point in the history
…($string) of type string is deprecated
  • Loading branch information
luigifab committed Oct 9, 2021
1 parent 5c24ea4 commit 4bf4f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Eav/Model/Attribute/Data/Multiline.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function outputValue($format = Mage_Eav_Model_Attribute_Data::OUTPUT_FORM
{
$values = $this->getEntity()->getData($this->getAttribute()->getAttributeCode());
if (!is_array($values)) {
$values = explode("\n", $values);
$values = is_string($values) ? explode("\n", $values) : [];
}
$values = array_map(array($this, '_applyOutputFilter'), $values);
switch ($format) {
Expand Down

0 comments on commit 4bf4f14

Please sign in to comment.