diff options
author | Kate Butler <kate@innocraft.com> | 2019-06-20 07:40:15 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2019-06-20 07:40:15 +0300 |
commit | ffcf0426e210e2bbdbdeacb29b5bb96a0b24e631 (patch) | |
tree | b1711b5231f513ac70463b20216d313e3c4199aa /plugins/Live | |
parent | da42577bf0bf5c3301b75513c982e9b36af8cf44 (diff) |
Fix warning from trying to count() datatable (#14546)
Diffstat (limited to 'plugins/Live')
-rw-r--r-- | plugins/Live/Controller.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Live/Controller.php b/plugins/Live/Controller.php index 0ae82af98b..5e1a6cbeec 100644 --- a/plugins/Live/Controller.php +++ b/plugins/Live/Controller.php @@ -191,7 +191,7 @@ class Controller extends \Piwik\Plugin\Controller $view = new View('@Live/getVisitList.twig'); $view->idSite = $this->idSite; - $view->startCounter = $startCounter < count($nextVisits) ? count($nextVisits) : $startCounter; + $view->startCounter = $startCounter < $nextVisits->getRowsCount() ? $nextVisits->getRowsCount() : $startCounter; $view->visits = $nextVisits; return $view->render(); } |