Corrected logout redirection

This commit is contained in:
Bryan Pedini committed 2019-02-26 10:07:30 +01:00
1 parent 4a4cad425b
commit a37b863eb7
1 file changed
+1 -1
+1 -1
View File
@@ -79,7 +79,7 @@
case "logout":
$_SESSION = array ( );
session_destroy ( );
header ( "Location: " . substr ( $_SERVER [ 'SCRIPT_NAME' ], 0, -10 ) );
header ( "Location: " . substr ( $_SERVER [ 'SCRIPT_NAME' ], 0, -10 ) . "/" );
break;
case "insert":
if ( ! isset ( $_SESSION [ 'user_id' ] ) ) {