Skip to content

Commit 929e98c

Browse files
committed
MAGETWO-57312: [GITHUB] Notice: Undefined offset: 0 in Order\Config.php
1 parent bdb0464 commit 929e98c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ public function getInvisibleOnFrontStatuses()
251251
protected function _getStatuses($visibility)
252252
{
253253
if ($this->statuses == null) {
254+
$this->statuses[true] = [];
255+
$this->statuses[false] = [];
254256
foreach ($this->_getCollection() as $item) {
255257
$visible = (bool) $item->getData('visible_on_front');
256258
$this->statuses[$visible][] = $item->getData('status');

0 commit comments

Comments
 (0)