From: Evan Prodromou Date: Mon, 7 Jul 2008 06:23:47 +0000 (-0400) Subject: check for profile X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8c9d88e26fa1af43d058d062721b240bc9d532ee;p=quix0rs-gnu-social.git check for profile darcs-hash:20080707062347-84dde-fb13c5548d962092877fc374cea3f81ec2cca43e.gz --- 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); } }