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:
authormattab <matthieu.aubry@gmail.com>2014-12-10 08:15:44 +0300
committermattab <matthieu.aubry@gmail.com>2014-12-10 08:15:44 +0300
commitc28f9d6e29fccc0e4d3b0d1c91a28667c620ee1e (patch)
tree5bb4844beddc73890cbcafd904bc98830046438f /plugins/Transitions
parentdab1ee71f1ced3abe28064145d39d8ca7f6eb5e9 (diff)
reuse $row->getSubtable() as much as possible instead of callng Manager::getInstance()->getTable which can throw exception refs #3414
Diffstat (limited to 'plugins/Transitions')
-rw-r--r--plugins/Transitions/API.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Transitions/API.php b/plugins/Transitions/API.php
index 44a39fdcf5..7092fee8f8 100644
--- a/plugins/Transitions/API.php
+++ b/plugins/Transitions/API.php
@@ -523,8 +523,8 @@ class API extends \Piwik\Plugin\API
if ($visits) {
// load details (i.e. subtables)
$details = array();
- if ($idSubTable = $row->getIdSubDataTable()) {
- $subTable = Manager::getInstance()->getTable($idSubTable);
+ $subTable = $row->getSubtable();
+ if ($subTable) {
foreach ($subTable->getRows() as $subRow) {
$details[] = array(
'label' => $subRow->getColumn('label'),