diff options
-rw-r--r-- | core/Metrics/Sorter.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Metrics/Sorter.php b/core/Metrics/Sorter.php index 48be5a2553..822b509d78 100644 --- a/core/Metrics/Sorter.php +++ b/core/Metrics/Sorter.php @@ -202,7 +202,7 @@ class Sorter public function getBestSortFlags(DataTable $table, $columnToSort) { // when column is label we always to sort by string or natural - if ($columnToSort !== 'label') { + if (isset($columnToSort) && $columnToSort !== 'label') { foreach ($table->getRowsWithoutSummaryRow() as $row) { $value = $row->getColumn($columnToSort); |