diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-12-17 21:15:27 +0300 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-12-17 21:15:27 +0300 |
commit | e472d213cbc77e8693532cf59da7b282b024bddd (patch) | |
tree | 25a241503c01fc825ef83101b94e79b9434c064e /plugins | |
parent | 4382c895618414b10ae1c34bc0ea2add2b981d33 (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.php | 7 |
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 |