Update funcs.user.php

In function isUserLoggedIn() check if the object $loggedInUser is NULL before accessing it to avoid an error in the $sql query.
Update funcs.user.php

In function isUserLoggedIn() check if the object $loggedInUser is NULL before accessing it to avoid an error in the $sql query.
Merge pull request #17 from javiermadueno/master

changes in isUserLogedIn()