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-07-30 13:14:18 +0400
committermattpiwik <matthieu.aubry@gmail.com>2012-07-30 13:14:18 +0400
commitb7adf691216f9e2836d5cb63eb8ee625fda30220 (patch)
tree8ca44c1c2d6159e1225bf4c8ca9cc3f5d6dce9bb /core/DataTable/Filter/Truncate.php
parenta4cdb6df8de01a4ffa52376d4def4a0fd9f2cd3f (diff)
Refs #3207 - Fixing (?) a 4 year old issue with the DataTable_Manager:
* Now a DataTable_Row knows if the sub-datatable was loaded in memory, which is useful when __destruct() is called to free memory I think the ticket is closed but pending my code being reviewed Also, we could still get rid of PatternRecursive git-svn-id: http://dev.piwik.org/svn/trunk@6593 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/DataTable/Filter/Truncate.php')
-rw-r--r--core/DataTable/Filter/Truncate.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/DataTable/Filter/Truncate.php b/core/DataTable/Filter/Truncate.php
index 79fad34362..3fce5d7751 100644
--- a/core/DataTable/Filter/Truncate.php
+++ b/core/DataTable/Filter/Truncate.php
@@ -38,12 +38,11 @@ class Piwik_DataTable_Filter_Truncate extends Piwik_DataTable_Filter
foreach($table->getRows() as $row)
{
- try {
+ if($row->isSubtableLoaded())
+ {
$idSubTable = $row->getIdSubDataTable();
$subTable = Piwik_DataTable_Manager::getInstance()->getTable($idSubTable);
$subTable->filter('Truncate', array($this->truncateAfter));
- } catch(Exception $e) {
- // there is no subtable loaded for example
}
}
}