@@ -40,8 +40,7 @@ discard block |
||
| 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,7 +54,8 @@ discard block |
||
| 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 | \ No newline at end of file |