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:
authormatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-12-17 21:15:27 +0300
committermatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-12-17 21:15:27 +0300
commite472d213cbc77e8693532cf59da7b282b024bddd (patch)
tree25a241503c01fc825ef83101b94e79b9434c064e /plugins
parent4382c895618414b10ae1c34bc0ea2add2b981d33 (diff)
Refs #1082 Fixes error Actions plugin: cannot use object of type Piwik_DataTable_Row as array
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Actions/Actions.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/Actions/Actions.php b/plugins/Actions/Actions.php
index 031176dd38..e664683056 100644
--- a/plugins/Actions/Actions.php
+++ b/plugins/Actions/Actions.php
@@ -349,9 +349,14 @@ class Piwik_Actions extends Piwik_Plugin
$rowsProcessed = 0;
while( $row = $query->fetch() )
{
+ // in some unknown case, the type field is NULL, as reported in #1082 - we ignore this page view
+ if(empty($row['type'])) {
+ continue;
+ }
+
$actionExplodedNames = $this->getActionExplodedNames($row['name'], $row['type']);
- // we work on the root table of the given TYPE (either ACTION or DOWNLOAD or OUTLINK etc.)
+ // we work on the root table of the given TYPE (either ACTION_URL or DOWNLOAD or OUTLINK etc.)
$currentTable =& $this->actionsTablesByType[$row['type']];
// go to the level of the subcategory