Skip to content

Commit 207b773

Browse files
authored
Fixed strip_tags(): Passing null to parameter #1 in Catalog/Model/Product/Option/Type/File.php (#3775)
1 parent e7eda99 commit 207b773

File tree

1 file changed

+2
-1
lines changed
  • app/code/core/Mage/Catalog/Model/Product/Option/Type

1 file changed

+2
-1
lines changed

app/code/core/Mage/Catalog/Model/Product/Option/Type/File.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,8 @@ protected function _unserializeValue($value)
545545
*/
546546
public function getPrintableOptionValue($optionValue)
547547
{
548-
return strip_tags($this->getFormattedOptionValue($optionValue));
548+
$value = $this->getFormattedOptionValue($optionValue);
549+
return $value === null ? '' : strip_tags($value);
549550
}
550551

551552
/**

0 commit comments

Comments
 (0)