Skip to content

Commit 7eb567e

Browse files
committed
Applying some minor adjustments
1 parent f353926 commit 7eb567e

File tree

2 files changed

+2
-2
lines changed
  • app/code/Magento/Widget/Block/Adminhtml/Widget
  • lib/internal/Magento/Framework/Data/Form/Element

2 files changed

+2
-2
lines changed

app/code/Magento/Widget/Block/Adminhtml/Widget/Options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ protected function _addField($parameter)
166166

167167
if (is_array($data['value'])) {
168168
foreach ($data['value'] as &$value) {
169-
if (!is_array($value)) {
169+
if (is_string($value)) {
170170
$value = html_entity_decode($value);
171171
}
172172
}

lib/internal/Magento/Framework/Data/Form/Element/Label.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(
3737
public function getElementHtml()
3838
{
3939
$html = $this->getBold() ? '<div class="control-value special">' : '<div class="control-value">';
40-
if (!is_array($this->getValue())) {
40+
if (is_string($this->getValue())) {
4141
$html .= $this->getEscapedValue();
4242
}
4343

0 commit comments

Comments
 (0)