diff options
-rw-r--r-- | classes/User.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/User.php b/classes/User.php index c5119de15..4a03630b5 100644 --- a/classes/User.php +++ b/classes/User.php @@ -97,6 +97,9 @@ class User extends DB_DataObject function getCurrentNotice($dt=NULL) { $profile = $this->getProfile(); + if (!$profile) { + return NULL; + } return $profile->getCurrentNotice($dt); } } |