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:
authorThomas Steur <tsteur@users.noreply.github.com>2020-04-28 10:01:27 +0300
committerGitHub <noreply@github.com>2020-04-28 10:01:27 +0300
commit7cdec01d05b3b8584bc33c2cf10df1807f5cff3a (patch)
treeafa0d81afa141a61fdae2f779136336c867be497
parentec2db0e3a0d5ff0bf86ce3f2baac0b3ae0db40b6 (diff)
Fix plugins/Live/Controller.php(99): Notice - Undefined variable: visitors (#15867)
* Fix plugins/Live/Controller.php(99): Notice - Undefined variable: visitors * Update Controller.php
-rw-r--r--plugins/Live/Controller.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/Live/Controller.php b/plugins/Live/Controller.php
index b69b5e658d..6c2ba2d741 100644
--- a/plugins/Live/Controller.php
+++ b/plugins/Live/Controller.php
@@ -13,6 +13,7 @@ use Piwik\Common;
use Piwik\Config;
use Piwik\Container\StaticContainer;
use Piwik\Piwik;
+use Piwik\DataTable;
use Piwik\Plugins\Goals\API as APIGoals;
use Piwik\Plugins\Live\Visualizations\VisitorLog;
use Piwik\Url;
@@ -89,6 +90,7 @@ class Controller extends \Piwik\Plugin\Controller
$view = new View('@Live/getLastVisitsStart');
$view->idSite = (int) $this->idSite;
$error = '';
+ $visitors = new DataTable();
try {
$api = new Request("method=Live.getLastVisitsDetails&idSite={$this->idSite}&filter_limit=10&format=original&serialize=0&disable_generic_filters=1");
$visitors = $api->process();