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:
authordiosmosis <benakamoorthi@fastmail.fm>2013-10-22 08:01:08 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2013-10-22 09:57:54 +0400
commita10eb83bfc85221b0afaedccfae881a55639d782 (patch)
tree9e47d643ec36a610cb9a327a85d7e64dea196cbc /plugins/Goals
parentb969dc796fe9a0116ef7481d009ef10c2ca7dc0a (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.php6
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();