From: Lincoln M. <nar...@us...> - 2004-10-20 01:11:21
|
Update of /cvsroot/mantisbt/mantisbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22861 Modified Files: summary_page.php Log Message: 0004737: [bugtracker] Summary page gives #401 error when no projects have been created. Index: summary_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/summary_page.php,v retrieving revision 1.41 retrieving revision 1.42 diff -u -d -r1.41 -r1.42 --- summary_page.php 23 Sep 2004 18:19:11 -0000 1.41 +++ summary_page.php 20 Oct 2004 01:11:02 -0000 1.42 @@ -26,7 +26,11 @@ if ( ALL_PROJECTS == $t_project_id ) { # Only projects to which the user have access $t_accessible_projects_array = user_get_accessible_projects( $t_user_id ); - $specific_where = ' (project_id='. implode( ' OR project_id=', $t_accessible_projects_array ).')'; + if ( count( $t_accessible_projects_array ) > 0 ) { + $specific_where = ' (project_id='. implode( ' OR project_id=', $t_accessible_projects_array ).')'; + } else { + $specific_where = '1=1'; + } } else { $specific_where = " project_id='$t_project_id'"; } |