Test Failed
Push — main ( 810d56...b5a7b1 )
by chief
02:50
created
web/public/s/classes/config.inc.php 1 patch
Braces   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@  discard block
 block discarded – undo
40 40
             ]
41 41
         );
42 42
         $__server->db_properties->db_connected = true;
43
-    }
44
-    catch(PDOException $e)
43
+    } catch(PDOException $e)
45 44
     {
46 45
         die("An error occured connecting to the database: ".$e->getMessage());
47 46
     }
@@ -55,8 +54,9 @@  discard block
 block discarded – undo
55 54
 
56 55
 	while($ban = $stmt->fetch(PDO::FETCH_ASSOC)) { 
57 56
         $ban_info = $ban;
58
-        if($_SERVER['REQUEST_URI'] != "/ban")
59
-		    header("Location: /ban");
57
+        if($_SERVER['REQUEST_URI'] != "/ban") {
58
+        		    header("Location: /ban");
59
+        }
60 60
 	}
61 61
 
62 62
     /* IP BANS */
@@ -66,8 +66,9 @@  discard block
 block discarded – undo
66 66
 
67 67
     while($ban = $stmt->fetch(PDO::FETCH_ASSOC)) { 
68 68
         $ban_info = $ban;
69
-        if($_SERVER['REQUEST_URI'] != "/ip_ban")
70
-            header("Location: /ip_ban");
69
+        if($_SERVER['REQUEST_URI'] != "/ip_ban") {
70
+                    header("Location: /ip_ban");
71
+        }
71 72
     }
72 73
 
73 74
     /* NOT RUNNING UNDER CF CHECK */
Please login to merge, or discard this patch.