diff --git a/module/VuFind/src/VuFind/Controller/AdminController.php b/module/VuFind/src/VuFind/Controller/AdminController.php index 7f1e79dd2006c3780b5ac02b120c1eeba08ab0c2..584c9d0f760cf9f67bb4f013b67f3b8adf798aee 100644 --- a/module/VuFind/src/VuFind/Controller/AdminController.php +++ b/module/VuFind/src/VuFind/Controller/AdminController.php @@ -210,7 +210,7 @@ class AdminController extends AbstractBase // Initialize browser/version data in view based on what we found above: if ($matchFound) { - $view->browserStats = $browserStats->toArray(); + $view->browserStats = $browserStats; $view->topVersions = $currentDriver->getBrowserStats(true, 5); } else { $view->browserStats = $view->topVersions = null; diff --git a/module/VuFind/src/VuFind/Db/Table/UserStats.php b/module/VuFind/src/VuFind/Db/Table/UserStats.php index e53ac0699c1eb81694e57cc8d8f3e58ecb493e18..6bfb97334e035c65731633598953972c6961eefc 100644 --- a/module/VuFind/src/VuFind/Db/Table/UserStats.php +++ b/module/VuFind/src/VuFind/Db/Table/UserStats.php @@ -96,6 +96,6 @@ class UserStats extends Gateway $select->order('count DESC'); }; - return $this->select($callback); + return $this->select($callback)->toArray(); } } \ No newline at end of file diff --git a/module/VuFind/src/VuFind/Statistics/Driver/Db.php b/module/VuFind/src/VuFind/Statistics/Driver/Db.php index 11fe055995109e1b6fae5a3127b98404e13db8d8..69962432a5310a0c7f837d7446ab64b654c34afc 100644 --- a/module/VuFind/src/VuFind/Statistics/Driver/Db.php +++ b/module/VuFind/src/VuFind/Statistics/Driver/Db.php @@ -93,7 +93,7 @@ class Db extends AbstractBase public function getFullList($field, $value = array()) { // Use the model - return $this->statsTable->getFields($field, $value); + return $this->statsTable->getFields($field, $value)->toArray(); } /** diff --git a/module/VuFind/src/VuFind/Statistics/Record.php b/module/VuFind/src/VuFind/Statistics/Record.php index 461cc447510280db6c8fb4908b54955f36b51329..a5aaa54fa43f0bdc6488814fda1d9ea8f22d6fff 100644 --- a/module/VuFind/src/VuFind/Statistics/Record.php +++ b/module/VuFind/src/VuFind/Statistics/Record.php @@ -72,8 +72,7 @@ class Record extends AbstractBase foreach ($this->drivers as $driver) { $summary = $driver->getFullList('recordId'); if (!empty($summary)) { - $summary = $summary->toArray(); - $sources = $driver->getFullList('recordSource')->toArray(); + $sources = $driver->getFullList('recordSource'); $hashes = array(); // Generate hashes (faster than grouping by looping) for ($i=0;$i<count($summary);$i++) { diff --git a/module/VuFind/src/VuFind/Statistics/Search.php b/module/VuFind/src/VuFind/Statistics/Search.php index 54ff03abf76b6df049ea66e92775c6d2e0bc2f85..d6eefca84d8c1c6e280952b6b4fafa387a81afe8 100644 --- a/module/VuFind/src/VuFind/Statistics/Search.php +++ b/module/VuFind/src/VuFind/Statistics/Search.php @@ -74,8 +74,7 @@ class Search extends AbstractBase foreach ($this->drivers as $driver) { $summary = $driver->getFullList('phrase'); if (!empty($summary)) { - $summary = $summary->toArray(); - $sources = $driver->getFullList('searchSource')->toArray(); + $sources = $driver->getFullList('searchSource'); $hashes = array(); // Generate hashes (faster than grouping by looping) for ($i=0;$i<count($summary);$i++) {