summaryrefslogtreecommitdiff
path: root/app/Stats.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2018-01-19 20:40:27 +0000
committerGreg Roach <fisharebest@gmail.com>2018-01-19 22:39:49 +0000
commita6afca4cf33b4e58e45d8100e7533e97799b5214 (patch)
treea8b36b651872efd57f510f38d8e1a8b760767b18 /app/Stats.php
parent9499ed38534b88c310649782326f430b724fbe3a (diff)
downloadwebtrees-a6afca4cf33b4e58e45d8100e7533e97799b5214.tar.gz
webtrees-a6afca4cf33b4e58e45d8100e7533e97799b5214.tar.bz2
webtrees-a6afca4cf33b4e58e45d8100e7533e97799b5214.zip
Error handling / exceptions
Diffstat (limited to 'app/Stats.php')
-rw-r--r--app/Stats.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Stats.php b/app/Stats.php
index c8d3023d7f..cb49048886 100644
--- a/app/Stats.php
+++ b/app/Stats.php
@@ -6439,7 +6439,7 @@ class Stats {
*/
public function totalGedcomFavorites() {
if (Module::getModuleByName('gedcom_favorites')) {
- return count(FamilyTreeFavoritesModule::getFavorites($this->tree));
+ return count(FamilyTreeFavoritesModule::getFavorites($this->tree, Auth::user()));
} else {
return 0;
}
@@ -6452,7 +6452,7 @@ class Stats {
*/
public function totalUserFavorites() {
if (Module::getModuleByName('user_favorites')) {
- return count(UserFavoritesModule::getFavorites($this->tree, Auth::id()));
+ return count(UserFavoritesModule::getFavorites($this->tree, Auth::user()));
} else {
return 0;
}