check for profile
darcs-hash:20080707062347-84dde-fb13c5548d962092877fc374cea3f81ec2cca43e.gz
This commit is contained in:
parent
97f9d226dd
commit
8c9d88e26f
@ -97,6 +97,9 @@ class User extends DB_DataObject
|
||||
|
||||
function getCurrentNotice($dt=NULL) {
|
||||
$profile = $this->getProfile();
|
||||
if (!$profile) {
|
||||
return NULL;
|
||||
}
|
||||
return $profile->getCurrentNotice($dt);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user