From 71c41fe940001ab06d0501e2bfd3ea0ab9eaf179 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Mon, 7 May 2012 23:26:23 +0200 Subject: [PATCH] Of course $ids should have been initialized beforehand... --- NEWS.mdtext | 3 ++- src/IDF/Views.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS.mdtext b/NEWS.mdtext index ffedb47..e4e1349 100644 --- a/NEWS.mdtext +++ b/NEWS.mdtext @@ -2,7 +2,8 @@ ## Bugfixes -- Fix the display of empty project statistics +- Fix two bugs in the project list view if no project + is visible to the user or available in the forge # InDefero 1.3.1 - Sun May 06 20:32 2012 UTC diff --git a/src/IDF/Views.php b/src/IDF/Views.php index e6442eb..bcc1492 100644 --- a/src/IDF/Views.php +++ b/src/IDF/Views.php @@ -381,6 +381,7 @@ class IDF_Views $db =& Pluf::db(); // the administrator can see all projects if ($user->administrator) { + $ids = array(); $sql_results = $db->select( 'SELECT id FROM '.Pluf::f('db_table_prefix', '').'idf_projects' );