Skip to content

Commit 6267084

Browse files
authored
Merge pull request #2391 from mgralikowski/patch-1
[9.0] Fix issue with non-existing variables/attributes .
2 parents 0a239bf + f352dd6 commit 6267084

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CollectionDataTable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,9 @@ protected function getSorter(array $criteria)
295295
$second = $b;
296296
}
297297
if ($this->config->isCaseInsensitive()) {
298-
$cmp = strnatcasecmp($first[$column], $second[$column]);
298+
$cmp = strnatcasecmp($first[$column] ?? null, $second[$column] ?? null);
299299
} else {
300-
$cmp = strnatcmp($first[$column], $second[$column]);
300+
$cmp = strnatcmp($first[$column] ?? null, $second[$column] ?? null);
301301
}
302302
if ($cmp != 0) {
303303
return $cmp;

0 commit comments

Comments
 (0)