summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-06-24 21:25:59 +0200
committerINOPIAE <inopiae@cacert.org>2013-06-24 21:25:59 +0200
commit57c0aa932a6a24a6588ac30f64b82837047db0bb (patch)
tree8ba21ed8218b4aedc1d3f2dee1c19b4de6ced6ec
parent0b8b84f40f5a774c9f966f314df8324360f67c21 (diff)
downloadcacert-devel-57c0aa932a6a24a6588ac30f64b82837047db0bb.tar.gz
cacert-devel-57c0aa932a6a24a6588ac30f64b82837047db0bb.tar.xz
cacert-devel-57c0aa932a6a24a6588ac30f64b82837047db0bb.zip
bug 782: changed order in if statementbug-782
-rw-r--r--www/gpg.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/gpg.php b/www/gpg.php
index a8b31fb..317072c 100644
--- a/www/gpg.php
+++ b/www/gpg.php
@@ -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'])."',