Gift certificate emails are coming through, but no gift certificate purchased

We have had a few reports recently of a gift certificate email coming through, even though no gift certificate was purchased. These emails will show:

Issue Number: 0

We are researching this, and will correct this in the next release. For now:

  1. Open the finish.php file in the /go/ folder.

  2. Add the code:

    if($issuenum>0)
    {

    just above the line:

    // Pull gift certificate to/from/address
  3. Add the code:

    }

    just under the line:

    @mail("$adminemail", "Gift Certificate Purchase", $gcmsg, "From:
    $adminemail
    Reply-To: $adminemail");
  4. Save and reload the file.

This will look at the issue number and keep it from populating the record unless that number is greater than zero.