summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-07 02:23:47 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-07 02:23:47 -0400
commit8c9d88e26fa1af43d058d062721b240bc9d532ee (patch)
treef07fc7e1087c19562a9ed31da4c6fff7800d880f
parent97f9d226dd9ac9620ff8a904af6eff065bcac198 (diff)
check for profile
darcs-hash:20080707062347-84dde-fb13c5548d962092877fc374cea3f81ec2cca43e.gz
-rw-r--r--classes/User.php3
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);
}
}