#72: When counting albums in the admin stats widget, count all, not just the current page

This commit is contained in:
Andy Heathershaw 2018-07-12 06:42:57 +01:00
parent 036814705f
commit 790d354167

View File

@ -125,7 +125,7 @@ class DefaultController extends Controller
{
$this->authorizeAccessToAdminPanel();
$albumCount = DbHelper::getAlbumsForCurrentUser()->count();
$albumCount = count(DbHelper::getAlbumIDsForCurrentUser());
$photoCount = Photo::all()->count();
$groupCount = Group::all()->count();
$labelCount = Label::all()->count();