Skip to content

Commit bdc381f

Browse files
author
Oleksandr Dubovyk
committed
MAGETWO-57312: [GITHUB] Notice: Undefined offset: 0 in Order\Config.php
- conflict merge
2 parents 0bb57a6 + 38420a0 commit bdc381f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

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

0 commit comments

Comments
 (0)