check for profile

darcs-hash:20080707062347-84dde-fb13c5548d962092877fc374cea3f81ec2cca43e.gz
This commit is contained in:
Evan Prodromou 2008-07-07 02:23:47 -04:00
parent 97f9d226dd
commit 8c9d88e26f
1 changed files with 3 additions and 0 deletions

View File

@ -97,6 +97,9 @@ class User extends DB_DataObject
function getCurrentNotice($dt=NULL) {
$profile = $this->getProfile();
if (!$profile) {
return NULL;
}
return $profile->getCurrentNotice($dt);
}
}