diff options
Diffstat (limited to 'src/view/LoginBuilder.php')
| -rw-r--r-- | src/view/LoginBuilder.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/LoginBuilder.php b/src/view/LoginBuilder.php index 639f953..479398c 100644 --- a/src/view/LoginBuilder.php +++ b/src/view/LoginBuilder.php | |||
| @@ -10,7 +10,7 @@ class LoginBuilder extends AbstractBuilder | |||
| 10 | public function __construct(Node $node) | 10 | public function __construct(Node $node) |
| 11 | { | 11 | { |
| 12 | // déjà connecté? | 12 | // déjà connecté? |
| 13 | if($_SESSION['admin']) | 13 | if(IS_ADMIN) |
| 14 | { | 14 | { |
| 15 | header('Location: ' . new URL); | 15 | header('Location: ' . new URL); |
| 16 | die; | 16 | die; |
