diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-01-04 18:05:11 +0300 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-01-04 18:05:11 +0300 |
commit | 7ad4e6c2585ceb8ba9fc4d355e22c53ad5d76a1f (patch) | |
tree | 7156fc4132f26f9d616d9145b0b2e402a6192652 /plugins/Actions | |
parent | cb8c64ead3360e218b2a1bb279c49a73cbd3fb90 (diff) |
refs #1082, revert [1754] per matt's review
Diffstat (limited to 'plugins/Actions')
-rw-r--r-- | plugins/Actions/Actions.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/Actions/Actions.php b/plugins/Actions/Actions.php index 6178656629..e664683056 100644 --- a/plugins/Actions/Actions.php +++ b/plugins/Actions/Actions.php @@ -364,10 +364,7 @@ class Piwik_Actions extends Piwik_Plugin for($level = 0 ; $level < $end; $level++) { $actionCategory = $actionExplodedNames[$level]; - if(is_array($currentTable)) - { - $currentTable =& $currentTable[$actionCategory]; - } + $currentTable =& $currentTable[$actionCategory]; } $actionName = $actionExplodedNames[$end]; @@ -385,10 +382,7 @@ class Piwik_Actions extends Piwik_Plugin // currentTable is now the array element corresponding the the action // at this point we may be for example at the 4th level of depth in the hierarchy - if(is_array($currentTable)) - { - $currentTable =& $currentTable[$actionName]; - } + $currentTable =& $currentTable[$actionName]; // add the row to the matching sub category subtable if(!($currentTable instanceof Piwik_DataTable_Row)) |