Index: bug_update.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/bug_update.php,v
retrieving revision 1.93
diff -u -r1.93 bug_update.php
--- bug_update.php	24 Oct 2007 22:30:44 -0000	1.93
+++ bug_update.php	25 Oct 2007 13:23:16 -0000
@@ -189,8 +189,10 @@
 		}
 	}
 
+	$c_time_tracking = db_prepare_time( $f_time_tracking );
+	
 	# Add a bugnote if there is one
-	if ( ( !is_blank( $f_bugnote_text ) || !is_blank( $f_time_tracking ) ) && ( false == $t_bug_note_set ) ) {
+	if ( ( !is_blank( $f_bugnote_text ) || $c_time_tracking > 0 ) && ( false == $t_bug_note_set ) ) {
 		bugnote_add( $f_bug_id, $f_bugnote_text, $f_time_tracking, $f_private );
 	}
 
