Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/Metrics/Sorter.php2
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);