Check that $_SESSION["uid"] is defined before checking value
Merge pull request #100 from yanobs/master

 Check that $_SESSION["uid"] is defined before checking value