diff --git a/include/class.client.php b/include/class.client.php index d65b0eea7ceb9364cc0707e0f9e532525444b41e..570af7c14f7afbd2a72ee49cf673b5af92438e45 100644 --- a/include/class.client.php +++ b/include/class.client.php @@ -51,8 +51,8 @@ implements EmailContact { } - function getId() { return $this->user->getId(); } - function getEmail() { return $this->user->getEmail(); } + function getId() { return ($this->user) ? $this->user->getId() : null; } + function getEmail() { return ($this->user) ? $this->user->getEmail() : null; } function sendAccessLink() { global $ost;