Skip to content

Commit

Permalink
ENGCOM-4518: [Backport] #13612 Fixed-Quantity_and_stock_status when v…
Browse files Browse the repository at this point in the history
…isibility set to storefront throwing exception #21802
  • Loading branch information
sidolov authored Mar 18, 2019
2 parents 71e61a7 + 2710f87 commit fa540f2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,15 @@ public function getOptionText($value)
}
}
// End
if (isset($options[$value])) {
if (is_scalar($value) && isset($options[$value])) {
return $options[$value];
}
return false;
}

/**
* Get option id.
*
* @param string $value
* @return null|string
*/
Expand Down

0 comments on commit fa540f2

Please sign in to comment.