diff options
| author | Greg Roach <fisharebest@gmail.com> | 2018-01-19 20:40:27 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2018-01-19 22:39:49 +0000 |
| commit | a6afca4cf33b4e58e45d8100e7533e97799b5214 (patch) | |
| tree | a8b36b651872efd57f510f38d8e1a8b760767b18 /app/Stats.php | |
| parent | 9499ed38534b88c310649782326f430b724fbe3a (diff) | |
| download | webtrees-a6afca4cf33b4e58e45d8100e7533e97799b5214.tar.gz webtrees-a6afca4cf33b4e58e45d8100e7533e97799b5214.tar.bz2 webtrees-a6afca4cf33b4e58e45d8100e7533e97799b5214.zip | |
Error handling / exceptions
Diffstat (limited to 'app/Stats.php')
| -rw-r--r-- | app/Stats.php | 4 |
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; } |
