Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in userpage.php #43

Open
ivarnasi opened this issue Feb 5, 2016 · 2 comments
Open

Issue in userpage.php #43

ivarnasi opened this issue Feb 5, 2016 · 2 comments

Comments

@ivarnasi
Copy link

ivarnasi commented Feb 5, 2016

Below code userpage.php forces the userpage.php to render blank page (no content) on browser since exit() command is not part of if condition. Once I comment that out, or move inside the if condition it works.

if (!isset($loggedInUser))
    header('Location: login.php');

// else
// header('Location: /');
exit();

Shouldn't the correct code be:

if (!isset($loggedInUser)) {
    header('Location: login.php');
       exit();
   }

// else
// header('Location: /');

@fassni
Copy link

fassni commented Mar 19, 2016

Worked great for me! Thanks!

@paxfactor
Copy link

I had the same problem, thanks for the suggestion! It works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants