Skip to content

Issue in userpage.php #43

@ivarnasi

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

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