diff --git a/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php b/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php index d3acfc0756a..856e34dd098 100644 --- a/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php +++ b/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php @@ -500,7 +500,7 @@ protected function _addColumnFilterToCollection($column) if ($field && $cond !== null) { $filtered = array_map(static function ($value) { return is_object($value) ? $value->__toString() : $value; - }, array_values($cond)); + }, is_array($cond) ? array_values($cond) : [$cond]); if (in_array('\'%NULL%\'', $filtered, true) || in_array('NULL', $filtered, true)) { $this->getCollection()->addFieldToFilter($field, ['null' => true]); } else {