@@ -118,7 +118,7 @@ |
||
| 118 | 118 | foreach( $listItems as $listItem ) |
| 119 | 119 | { |
| 120 | 120 | if( ( $refItem = $listItem->getRefItem() ) !== null ) { |
| 121 | - $listMap[ $refItem->getType() ][ $listItem->getType() ][] = $listItem; |
|
| 121 | + $listMap[$refItem->getType()][$listItem->getType()][] = $listItem; |
|
| 122 | 122 | } |
| 123 | 123 | } |
| 124 | 124 | |
@@ -87,8 +87,7 @@ |
||
| 87 | 87 | foreach( $manager->searchItems( $search ) as $item ) { |
| 88 | 88 | $this->listTypes[$item->getCode()] = $item->getCode(); |
| 89 | 89 | } |
| 90 | - } |
|
| 91 | - else |
|
| 90 | + } else |
|
| 92 | 91 | { |
| 93 | 92 | $this->listTypes = array_flip( $this->listTypes ); |
| 94 | 93 | } |