From 8c9d88e26fa1af43d058d062721b240bc9d532ee Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 7 Jul 2008 02:23:47 -0400 Subject: [PATCH] check for profile darcs-hash:20080707062347-84dde-fb13c5548d962092877fc374cea3f81ec2cca43e.gz --- classes/User.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/classes/User.php b/classes/User.php index c5119de15f..4a03630b59 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); } } -- 2.39.5