Skip to content

Commit c202af9

Browse files
authored
Fixed return type of Mage_Adminhtml_Block_System_Config_Form::_canShowField (#1356)
1 parent 26b9eee commit c202af9

File tree

1 file changed

+3
-6
lines changed
  • app/code/core/Mage/Adminhtml/Block/System/Config

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -627,14 +627,11 @@ protected function _canShowField($field)
627627

628628
switch ($this->getScope()) {
629629
case self::SCOPE_DEFAULT:
630-
return (int)$field->show_in_default;
631-
break;
630+
return (bool)$field->show_in_default;
632631
case self::SCOPE_WEBSITES:
633-
return (int)$field->show_in_website;
634-
break;
632+
return (bool)$field->show_in_website;
635633
case self::SCOPE_STORES:
636-
return (int)$field->show_in_store;
637-
break;
634+
return (bool)$field->show_in_store;
638635
}
639636
return true;
640637
}

0 commit comments

Comments
 (0)