Skip to content

Commit 38420a0

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

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

0 commit comments

Comments
 (0)