bug 782: changed order in if statement bug-782
authorINOPIAE <inopiae@cacert.org>
Mon, 24 Jun 2013 19:25:59 +0000 (21:25 +0200)
committerINOPIAE <inopiae@cacert.org>
Mon, 24 Jun 2013 19:25:59 +0000 (21:25 +0200)
www/gpg.php

index a8b31fb..317072c 100644 (file)
@@ -276,9 +276,9 @@ function verifyEmail($email)
        {
                //set variable for comment
                if(trim($_REQUEST['description']) == ""){
-                       $description= trim(mysql_real_escape_string(stripslashes($_REQUEST['description'])));
-               }else{
                        $description= "";
+               }else{
+                       $description= trim(mysql_real_escape_string(stripslashes($_REQUEST['description'])));
                }
 
                $query = "insert into `gpg` set `memid`='".intval($_SESSION['profile']['id'])."',