Update of /cvsroot/mantisbt/mantisbt/core
In directory usw-pr-cvs1:/tmp/cvs-serv12536/core
Modified Files:
email_api.php html_api.php
Log Message:
- Fixed a "user not found" error when a bug was submitted without being assigned (simple / advanced)
- Fixed a problem with the previous commit (Report Bug link).
Index: email_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/email_api.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- email_api.php 31 Aug 2002 01:59:34 -0000 1.9
+++ email_api.php 31 Aug 2002 02:54:19 -0000 1.10
@@ -363,7 +363,11 @@
$t_reporter_name = user_get_name( $v_reporter_id );
- $t_handler_name = user_get_name( $v_handler_id );
+ if ( 0 != $v_handler_id ) {
+ $t_handler_name = user_get_name( $v_handler_id );
+ } else {
+ $t_handler_name = '';
+ }
$v2_description = string_email( $v2_description );
$v_summary = string_email( $v_summary );
Index: html_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/html_api.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- html_api.php 31 Aug 2002 01:59:34 -0000 1.6
+++ html_api.php 31 Aug 2002 02:54:20 -0000 1.7
@@ -311,7 +311,7 @@
if ( access_level_check_greater_or_equal( REPORTER ) ) {
if ( "0000000" != $g_project_cookie_val ) {
$t_report_url = get_report_redirect_url( 1 );
- PRINT '<a href="$t_report_url">' . lang_get( 'report_bug_link' ) . '</a> | ';
+ PRINT '<a href="' . $t_report_url . '">' . lang_get( 'report_bug_link' ) . '</a> | ';
} else {
PRINT '<a href="login_select_proj_page.php?f_ref=' . get_report_redirect_url( 1 ) . '">' . lang_get( 'report_bug_link' ) . '</a> | ';
}
|