bug 782: removed trace echo and removes if statement in block comments for 12.php
authorINOPIAE <inopiae@cacert.org>
Wed, 19 Jun 2013 20:47:34 +0000 (22:47 +0200)
committerINOPIAE <inopiae@cacert.org>
Wed, 19 Jun 2013 20:47:34 +0000 (22:47 +0200)
includes/account.php

index a0f9677..3039248 100644 (file)
                showheader(_("My CAcert.org Account!"));
                foreach($_REQUEST as $id => $val)
                {
-                       echo "id:".$id."</br>";
                        if(substr($id,0,14)=="check_comment_")
                        {
                                $cid = intval(substr($id,14));
-                               echo "cid".$cid."</br>";
-                               if(!empty($_REQUEST['check_comment_'.$cid])) {
-                                       $comment=trim(mysql_real_escape_string(stripslashes($_REQUEST['comment_'.$cid])));
-                                       mysql_query("update `domaincerts` set `description`='$comment' where `id`='$cid' and `memid`='".$_SESSION['profile']['id']."'");
-                               }
+                               $comment=trim(mysql_real_escape_string(stripslashes($_REQUEST['comment_'.$cid])));
+                               mysql_query("update `domaincerts` set `description`='$comment' where `id`='$cid' and `memid`='".$_SESSION['profile']['id']."'");
                        }
                }
                echo(_("Certificate settings have been changed.")."<br/>\n");