Skip to content

Commit 4d015c8

Browse files
committed
exchange " for '
1 parent 0a70ee9 commit 4d015c8

File tree

2 files changed

+4
-4
lines changed
  • app/code/core/Mage/Adminhtml/Block

2 files changed

+4
-4
lines changed

app/code/core/Mage/Adminhtml/Block/System/Config/Form/Field.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ public function render(Varien_Data_Form_Element_Abstract $element)
8383
$defTextArr = [];
8484
foreach ($options as $k => $v) {
8585
if ($isMultiple) {
86-
if (array_key_exists("value", $v) && is_array($v['value']) && in_array($k, $v['value'])) {
86+
if (array_key_exists('value', $v) && is_array($v['value']) && in_array($k, $v['value'])) {
8787
$defTextArr[] = $v['label'];
8888
}
89-
} elseif (array_key_exists("value", $v)) {
89+
} elseif (array_key_exists('value', $v)) {
9090
if ($v['value'] == $defText) {
9191
$defTextArr[] = $v['label'];
9292
break;

app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Filter/Select.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ protected function _getOptions()
5454
*/
5555
protected function _renderOption($option, $value)
5656
{
57-
$selected = (!is_null($value) && array_key_exists("value", $option) && ($option['value'] == $value)) ? ' selected="selected"' : '';
57+
$selected = (!is_null($value) && array_key_exists('value', $option) && ($option['value'] == $value)) ? ' selected="selected"' : '';
5858
return '<option value="' . $this->escapeHtml($option['value']) . '"' . $selected . '>' . $this->escapeHtml($option['label']) . '</option>';
5959
}
6060

@@ -66,7 +66,7 @@ public function getHtml()
6666
$html = '<select name="' . $this->_getHtmlName() . '" id="' . $this->_getHtmlId() . '" class="no-changes">';
6767
$value = $this->getValue();
6868
foreach ($this->_getOptions() as $option) {
69-
if (array_key_exists("value", $option) && is_array($option['value'])) {
69+
if (array_key_exists('value', $option) && is_array($option['value'])) {
7070
$html .= '<optgroup label="' . $this->escapeHtml($option['label']) . '">';
7171
foreach ($option['value'] as $subOption) {
7272
$html .= $this->_renderOption($subOption, $value);

0 commit comments

Comments
 (0)