Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
If submit of survey fails, and an email is sent, the session is now d…
…estroyed.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@1026 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed May 11, 2004
1 parent 550faa3 commit dc9f565
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.php
Expand Up @@ -818,6 +818,9 @@ function submitfailed()
. mysql_error()."\n\n";
$email=crlf_lineendings($email);
mail($thissurvey['adminemail'], _DNSAVEEMAIL5, $email);
//An email has been sent, so we can kill off this session.
session_unset();
session_destroy();
}
else
{
Expand Down

0 comments on commit dc9f565

Please sign in to comment.