Skip to content

Commit

Permalink
Applying some minor adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard13 committed Feb 7, 2019
1 parent f353926 commit 7eb567e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/code/Magento/Widget/Block/Adminhtml/Widget/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ protected function _addField($parameter)

if (is_array($data['value'])) {
foreach ($data['value'] as &$value) {
if (!is_array($value)) {
if (is_string($value)) {
$value = html_entity_decode($value);
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/Magento/Framework/Data/Form/Element/Label.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct(
public function getElementHtml()
{
$html = $this->getBold() ? '<div class="control-value special">' : '<div class="control-value">';
if (!is_array($this->getValue())) {
if (is_string($this->getValue())) {
$html .= $this->getEscapedValue();
}

Expand Down

0 comments on commit 7eb567e

Please sign in to comment.