Skip to content

Commit f80fe98

Browse files
committed
fixed bug where users who are logged in are redirected to viewNoAccount.php
1 parent b3e5b1f commit f80fe98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

view.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
if (!isset($_COOKIE[$_SESSION['user_name']])) { // Checks if a users does not have a cookie in their browser
77
header('Location: index.php'); // Redirects the user to the index page (index.php)
88
} else {
9-
header('Location: viewNoAccount.php?mode=get&topic=all'); // Redirects the user to the view page for users that aren't logged in (viewNoAccount.php)
9+
//header('Location: viewNoAccount.php?mode=get&topic=all'); // Redirects the user to the view page for users that aren't logged in (viewNoAccount.php)
1010
}
1111

1212
$urlTopic = $_GET['topic']; // Declares the variable with the value it gets from the post topic from the url

0 commit comments

Comments
 (0)