From 4d015c8e055983e8963a6affdc279281fbca8d04 Mon Sep 17 00:00:00 2001 From: Alexander Held Date: Sat, 27 Jul 2024 14:03:23 +0200 Subject: [PATCH] exchange " for ' --- .../core/Mage/Adminhtml/Block/System/Config/Form/Field.php | 4 ++-- .../Mage/Adminhtml/Block/Widget/Grid/Column/Filter/Select.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/code/core/Mage/Adminhtml/Block/System/Config/Form/Field.php b/app/code/core/Mage/Adminhtml/Block/System/Config/Form/Field.php index d566cd46165..f64a9d1a06c 100644 --- a/app/code/core/Mage/Adminhtml/Block/System/Config/Form/Field.php +++ b/app/code/core/Mage/Adminhtml/Block/System/Config/Form/Field.php @@ -83,10 +83,10 @@ public function render(Varien_Data_Form_Element_Abstract $element) $defTextArr = []; foreach ($options as $k => $v) { if ($isMultiple) { - if (array_key_exists("value", $v) && is_array($v['value']) && in_array($k, $v['value'])) { + if (array_key_exists('value', $v) && is_array($v['value']) && in_array($k, $v['value'])) { $defTextArr[] = $v['label']; } - } elseif (array_key_exists("value", $v)) { + } elseif (array_key_exists('value', $v)) { if ($v['value'] == $defText) { $defTextArr[] = $v['label']; break; diff --git a/app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Filter/Select.php b/app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Filter/Select.php index f77d93d09c4..e942bdda732 100644 --- a/app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Filter/Select.php +++ b/app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Filter/Select.php @@ -54,7 +54,7 @@ protected function _getOptions() */ protected function _renderOption($option, $value) { - $selected = (!is_null($value) && array_key_exists("value", $option) && ($option['value'] == $value)) ? ' selected="selected"' : ''; + $selected = (!is_null($value) && array_key_exists('value', $option) && ($option['value'] == $value)) ? ' selected="selected"' : ''; return ''; } @@ -66,7 +66,7 @@ public function getHtml() $html = '