Skip to content

Commit d54a476

Browse files
schugabedkd-kaehm
authored andcommitted
[BUGFIX] check if all sorting parts are present before access
Fixes: #3874 Ports: #3876 Replaces: #3875
1 parent bc6a4d9 commit d54a476

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Classes/Domain/Search/SearchRequest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,9 @@ public function getSeperatedSortings(): array
350350

351351
foreach ($explodedSortings as $sorting) {
352352
$sortingSeperated = explode(' ', $sorting);
353-
$parsedSortings[$sortingSeperated[0]] = $sortingSeperated[1];
353+
if (count($sortingSeperated) === 2) {
354+
$parsedSortings[$sortingSeperated[0]] = $sortingSeperated[1];
355+
}
354356
}
355357

356358
return $parsedSortings;

0 commit comments

Comments
 (0)