File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -1156,16 +1156,17 @@ public function getSortingIndices(
1156
1156
}
1157
1157
}
1158
1158
$ attrsToReturn = [];
1159
- if (count ($ attributesToAdd )) {
1160
- foreach ($ attrs as $ attr ) {
1161
- if ($ attr ['attribute ' ] == self ::SORT_ATTRIBUTE_PRICE && isset ($ attributesToAdd [$ attr ['sort ' ]])) {
1162
- $ attrsToReturn = array_merge ($ attrsToReturn , $ attributesToAdd [$ attr ['sort ' ]]);
1163
- } else {
1164
- $ attrsToReturn [] = $ attr ;
1165
- }
1159
+
1160
+ foreach ($ attrs as $ attr ) {
1161
+ if ($ attr ['attribute ' ] == self ::SORT_ATTRIBUTE_PRICE
1162
+ && count ($ attributesToAdd )
1163
+ && isset ($ attributesToAdd [$ attr ['sort ' ]])) {
1164
+ $ attrsToReturn = array_merge ($ attrsToReturn , $ attributesToAdd [$ attr ['sort ' ]]);
1165
+ } else {
1166
+ $ attrsToReturn [] = $ attr ;
1166
1167
}
1167
1168
}
1168
-
1169
+
1169
1170
if ($ useCache ) {
1170
1171
$ this ->_sortingIndices [$ storeId ] = $ attrsToReturn ;
1171
1172
}
You can’t perform that action at this time.
0 commit comments