diff options
Diffstat (limited to 'core/DataTable/Filter/Sort.php')
-rw-r--r-- | core/DataTable/Filter/Sort.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/DataTable/Filter/Sort.php b/core/DataTable/Filter/Sort.php index eabf22415d..2b5dbff5ea 100644 --- a/core/DataTable/Filter/Sort.php +++ b/core/DataTable/Filter/Sort.php @@ -161,6 +161,10 @@ class Piwik_DataTable_Filter_Sort extends Piwik_DataTable_Filter return; } $row = current($rows); + if($row === false) + { + return; + } $this->columnToSort = $this->selectColumnToSort($row); $value = $row->getColumn($this->columnToSort); |