diff --git a/include/class.client.php b/include/class.client.php index 26902e61fc46823ea18476f78e9bbe4faa0b26c6..a55d7bf3295f7697b587b91a403103424b4b70df 100644 --- a/include/class.client.php +++ b/include/class.client.php @@ -55,8 +55,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;