Browse code

PHP_SELF ├╝ber array

Hanno authored on 08/09/2018 19:05:03
Showing 1 changed files
... ...
@@ -23,7 +23,7 @@ $show = 'token';
23 23
 if (isset($_SESSION['role']) && $_SESSION['role'] != ROLE_ANONYMOUS) {
24 24
     @session_destroy();
25 25
 
26
-    header('Location: '.$PHP_SELF);
26
+    header('Location: '.$_SERVER['PHP_SELF']);
27 27
     die();
28 28
 }
29 29