]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Re-fixing bug 30824 the correct way (which also fixes bug 46753)
authordave%intrec.com <>
Sun, 13 Aug 2000 06:30:51 +0000 (06:30 +0000)
committerdave%intrec.com <>
Sun, 13 Aug 2000 06:30:51 +0000 (06:30 +0000)
process_bug.cgi

index 715546fde478e57cdd2dcb96ff9c450292e323a4..14dbe1a03396d6e0920a048c27a61fc737c33815 100755 (executable)
@@ -898,12 +898,11 @@ The changes made were:
         }
         if ($old ne $new) {
             if ($col eq 'assigned_to' || $col eq 'qa_contact') {
-                $old = DBID_to_name($old) if $old != 0;
-                $new = DBID_to_name($new) if $new != 0;
+                $old = ($old) ? DBID_to_name($old) : "";
+                $new = ($new) ? DBID_to_name($new) : "";
                 $origCcString .= ",$old"; # make sure to send mail to people
                                           # if they are going to no longer get
                                           # updates about this bug.
-                $old = "" if $old == 0;
             }
             if ($col eq 'product') {
                 RemoveVotes($id, 0,