bug 893: Fix indentation to make code-flow more obvious
authorBenny Baumann <BenBE@geshi.org>
Sun, 21 Jul 2013 20:34:16 +0000 (22:34 +0200)
committerBenny Baumann <BenBE@geshi.org>
Sun, 21 Jul 2013 20:34:16 +0000 (22:34 +0200)
includes/account.php

index b3a86c5..91b75f0 100644 (file)
                        $description= trim(mysql_real_escape_string(stripslashes($_REQUEST['description'])));
                }else{
                        $description= "";
-       }
+               }
 
-       if(trim($_REQUEST['disablelogin']) == "1"){
-               $disablelogin = 1;
-       }else{
-               $disablelogin = 0;
-       }
+               if(trim($_REQUEST['disablelogin']) == "1"){
+                       $disablelogin = 1;
+               }else{
+                       $disablelogin = 0;
+               }
 
-       mysql_query("update `emailcerts` set `disablelogin`='$disablelogin', `description`='$description' where `id`='".$_REQUEST['certid']."' and `memid`='".$_SESSION['profile']['id']."'");
+               mysql_query("update `emailcerts` set `disablelogin`='$disablelogin', `description`='$description' where `id`='".$_REQUEST['certid']."' and `memid`='".$_SESSION['profile']['id']."'");
+       }
 
- }
        if($oldid == 13 && $process != "")
        {
                csrf_check("perschange");