diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2013-10-22 08:01:08 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2013-10-22 09:57:54 +0400 |
commit | a10eb83bfc85221b0afaedccfae881a55639d782 (patch) | |
tree | 9e47d643ec36a610cb9a327a85d7e64dea196cbc /plugins/Goals | |
parent | b969dc796fe9a0116ef7481d009ef10c2ca7dc0a (diff) |
Refs #4200, make DataTable:: private & add public methods necessary, tweaking some filter docs, and remove AddConstantMetadata filter.
Diffstat (limited to 'plugins/Goals')
-rw-r--r-- | plugins/Goals/API.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/Goals/API.php b/plugins/Goals/API.php index 410af4d26f..5ad1bc28dc 100644 --- a/plugins/Goals/API.php +++ b/plugins/Goals/API.php @@ -253,8 +253,10 @@ class API extends \Piwik\Plugin\API // we do not enter the IF // if case idSite=1,3 AND period=day&date=datefrom,dateto, - if (isset($customVariableTableForDate->metadata['period'])) { - $dateRewrite = $customVariableTableForDate->metadata['period']->getDateStart()->toString(); + if ($customVariableTableForDate instanceof DataTable + && $customVariableTableForDate->getMetadata('period') + ) { + $dateRewrite = $customVariableTableForDate->getMetadata('period')->getDateStart()->toString(); $row = $customVariableTableForDate->getRowFromLabel($customVarNameToLookFor); if ($row) { $idSubtable = $row->getIdSubDataTable(); |