Skip to content

Issue in userpage.php #43

Description

@ivarnasi

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: /');

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions