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 (OpenMage#3775)
  • Loading branch information
kiatng committed Feb 8, 2024
1 parent e7eda99 commit 207b773
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 207b773

Please sign in to comment.