Skip to content

Commit

Permalink
Fixed strip_tags(): Passing null to parameter #1 in Catalog/Model/Pro…
Browse files Browse the repository at this point in the history
…duct/Option/Type/File.php
  • Loading branch information
kiatng committed Feb 1, 2024
1 parent 7a3e765 commit f9897e7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,8 @@ protected function _unserializeValue($value)
*/
public function getPrintableOptionValue($optionValue)
{
return strip_tags($this->getFormattedOptionValue($optionValue));
$value = $this->getFormattedOptionValue($optionValue);
return $value === null ? '' : strip_tags($value);
}

/**
Expand Down

0 comments on commit f9897e7

Please sign in to comment.