File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Catalog/Model/Product/Type Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -567,7 +567,7 @@ public function checkProductBuyState($product = null)
567
567
if ($ option ->getIsRequire ()) {
568
568
$ customOption = $ this ->getProduct ($ product )
569
569
->getCustomOption (self ::OPTION_PREFIX . $ option ->getId ());
570
- if (!$ customOption || strlen ($ customOption ->getValue ()) == 0 ) {
570
+ if (!$ customOption || $ customOption -> getValue () === null || strlen ($ customOption ->getValue ()) = == 0 ) {
571
571
$ this ->getProduct ($ product )->setSkipCheckRequiredOption (true );
572
572
Mage::throwException (
573
573
Mage::helper ('catalog ' )->__ ('The product has required options ' )
Original file line number Diff line number Diff line change @@ -250,6 +250,9 @@ function ($matches) {
250
250
*/
251
251
public function stripTags ($ data , $ allowableTags = null , $ escape = false )
252
252
{
253
+ if ($ data === null ) {
254
+ return '' ;
255
+ }
253
256
$ result = strip_tags ($ data , $ allowableTags );
254
257
return $ escape ? $ this ->escapeHtml ($ result , $ allowableTags ) : $ result ;
255
258
}
You can’t perform that action at this time.
0 commit comments