Skip to content

Commit 0308513

Browse files
committed
MAGETWO-69365: Fix undefined offset notice when no order states are set #4903
- Merge Pull Request #4903 from adragus-inviqa/magento2:patch-3
2 parents f63b0a1 + 9dd09c6 commit 0308513

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/Sales/Model/Order/Config.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,10 @@ public function getInvisibleOnFrontStatuses()
250250
*/
251251
protected function _getStatuses($visibility)
252252
{
253-
if ($this->statuses == null) {
253+
if ($this->statuses === null) {
254+
255+
$this->statuses = [ true => [], false => [] ];
256+
254257
foreach ($this->_getCollection() as $item) {
255258
$visible = (bool) $item->getData('visible_on_front');
256259
$this->statuses[$visible][] = $item->getData('status');

0 commit comments

Comments
 (0)