prevent warning when user is not logged in
Try to fix issue #10; work around bug https://bugs.php.net/bug.php?id=68168