summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-06-24 20:34:13 +0200
committerINOPIAE <inopiae@cacert.org>2013-06-24 20:34:13 +0200
commit0b8b84f40f5a774c9f966f314df8324360f67c21 (patch)
tree21503ea0926694f0a88ef1f1e4781bdfdaa8944d /www
parent8dffbe94dff928a0c6290eb998ebd540af0b62f9 (diff)
downloadcacert-devel-0b8b84f40f5a774c9f966f314df8324360f67c21.tar.gz
cacert-devel-0b8b84f40f5a774c9f966f314df8324360f67c21.tar.xz
cacert-devel-0b8b84f40f5a774c9f966f314df8324360f67c21.zip
bug 782: moved position of setting variable $description
Diffstat (limited to 'www')
-rw-r--r--www/gpg.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/www/gpg.php b/www/gpg.php
index c69689a..a8b31fb 100644
--- a/www/gpg.php
+++ b/www/gpg.php
@@ -251,13 +251,6 @@ function verifyEmail($email)
}
$resulttable.="</table>";
- //set variable for comment
- if(trim($_REQUEST['description']) == ""){
- $description= trim(mysql_real_escape_string(stripslashes($_REQUEST['description'])));
- }else{
- $description= "";
- }
-
if($nok==0)
{
showheader(_("Welcome to CAcert.org"));
@@ -281,6 +274,13 @@ function verifyEmail($email)
if($oldid == "0" && $CSR != "")
{
+ //set variable for comment
+ if(trim($_REQUEST['description']) == ""){
+ $description= trim(mysql_real_escape_string(stripslashes($_REQUEST['description'])));
+ }else{
+ $description= "";
+ }
+
$query = "insert into `gpg` set `memid`='".intval($_SESSION['profile']['id'])."',
`email`='".mysql_real_escape_string($lastvalidemail)."',
`level`='1',