From 8ad07075097716ad3cb75a5c598210895434d9a5 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Mon, 7 May 2012 23:12:55 +0200 Subject: [PATCH] Fix the project display when no projects are available or visible. --- NEWS.mdtext | 4 +++- src/IDF/Views.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NEWS.mdtext b/NEWS.mdtext index 0decaf2..ffedb47 100644 --- a/NEWS.mdtext +++ b/NEWS.mdtext @@ -1,6 +1,8 @@ # InDefero 1.3.2 - xxx xxx xx xx:xx 2012 UTC -- ... +## Bugfixes + +- Fix the display of empty project statistics # InDefero 1.3.1 - Sun May 06 20:32 2012 UTC diff --git a/src/IDF/Views.php b/src/IDF/Views.php index 37c4cd0..e6442eb 100644 --- a/src/IDF/Views.php +++ b/src/IDF/Views.php @@ -505,7 +505,7 @@ class IDF_Views */ public static function getProjectsStatistics($projects) { - $projectIds = array(); + $projectIds = array(0); foreach ($projects as $project) { $projectIds[] = $project->id; }