bug 782: changed of line order
authorINOPIAE <inopiae@cacert.org>
Mon, 13 May 2013 20:44:15 +0000 (22:44 +0200)
committerINOPIAE <inopiae@cacert.org>
Mon, 13 May 2013 20:44:15 +0000 (22:44 +0200)
includes/account.php

index 7e29084..024238b 100644 (file)
                        }
                        if(substr($id,0,14)=="check_comment_")
                        {
+                               $cid = intval(substr($id,14));
                                if (!empty($_REQUEST['check_comment_'.$id])) {
-                                       $cid = intval(substr($id,14));
                                        $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']."'");
                                }