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:
authormattpiwik <matthieu.aubry@gmail.com>2012-06-01 18:12:57 +0400
committermattpiwik <matthieu.aubry@gmail.com>2012-06-01 18:12:57 +0400
commit45a55f3c8e3ee5e0769167b10514d59de4697b40 (patch)
tree4d30f76e001bbcdd95cca1c3bb52e806d1026483 /core/DataTable/Filter/AddSummaryRow.php
parent2de40e94786c49f31599ce4b66cb63a060705b62 (diff)
Fixes Recoverable Error: Argument 1 passed to Piwik_DataTable_Row::sumRow() must be an instance of Piwik_DataTable_Row, boolean given
git-svn-id: http://dev.piwik.org/svn/trunk@6439 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/DataTable/Filter/AddSummaryRow.php')
-rw-r--r--core/DataTable/Filter/AddSummaryRow.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/DataTable/Filter/AddSummaryRow.php b/core/DataTable/Filter/AddSummaryRow.php
index aa83026128..fb62bef529 100644
--- a/core/DataTable/Filter/AddSummaryRow.php
+++ b/core/DataTable/Filter/AddSummaryRow.php
@@ -73,7 +73,12 @@ class Piwik_DataTable_Filter_AddSummaryRow extends Piwik_DataTable_Filter
{
// case when the last row is a summary row, it is not indexed by $cout but by Piwik_DataTable::ID_SUMMARY_ROW
$summaryRow = $table->getRowFromId(Piwik_DataTable::ID_SUMMARY_ROW);
- $newRow->sumRow($summaryRow);
+
+ //FIXME: I'm not sure why it could return false, but it was reported in: http://forum.piwik.org/read.php?2,89324,page=1#msg-89442
+ if($summaryRow)
+ {
+ $newRow->sumRow($summaryRow);
+ }
}
else
{