bug 782: removed echos and fixed variable name
authorINOPIAE <inopiae@cacert.org>
Tue, 14 May 2013 19:50:28 +0000 (21:50 +0200)
committerINOPIAE <inopiae@cacert.org>
Tue, 14 May 2013 19:50:28 +0000 (21:50 +0200)
includes/account.php

index 748dd9e..df5fadd 100644 (file)
        if($oldid == 5 && array_key_exists('change',$_REQUEST) && $_REQUEST['change'] != "")
        {
                showheader(_("My CAcert.org Account!"));
-echo var_dump($_REQUEST).'<br>';
                foreach($_REQUEST as $id => $val)
                {
                        if(substr($id,0,5)=="cert_")
@@ -1148,8 +1147,7 @@ echo var_dump($_REQUEST).'<br>';
                        if(substr($id,0,14)=="check_comment_")
                        {
                                $cid = intval(substr($id,14));
-echo 'cid:'.$cid.'<br>';
-                               if (!empty($_REQUEST['check_comment_'.$id])) {
+                               if(!empty($_REQUEST['check_comment_'.$cid])) {
                                        $comment=trim(mysql_real_escape_string(stripslashes($_REQUEST['comment_'.$cid])));
                                        mysql_query("update `emailcerts` set `description`='$comment' where `id`='$cid' and `memid`='".$_SESSION['profile']['id']."'");
                                }