bug 782: moved definition of $description to a different place
authorINOPIAE <inopiae@cacert.org>
Sun, 23 Jun 2013 20:51:31 +0000 (22:51 +0200)
committerINOPIAE <inopiae@cacert.org>
Sun, 23 Jun 2013 20:51:31 +0000 (22:51 +0200)
www/gpg.php

index b7c9989..c69689a 100644 (file)
@@ -248,15 +248,15 @@ function verifyEmail($email)
                        $resulttable.="</tr>\n";
 
                        if($emailok) $multiple++;
-
-                       if(trim($_REQUEST['description']) == ""){
-                               $description= trim(mysql_real_escape_string(stripslashes($_REQUEST['description'])));
-                       }else{
-                               $description= "";
-                       }
                }
                $resulttable.="</table>";
 
+               //set variable for comment
+               if(trim($_REQUEST['description']) == ""){
+                       $description= trim(mysql_real_escape_string(stripslashes($_REQUEST['description'])));
+               }else{
+                       $description= "";
+               }
 
                if($nok==0)
                {