]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
check for profile
authorEvan Prodromou <evan@prodromou.name>
Mon, 7 Jul 2008 06:23:47 +0000 (02:23 -0400)
committerEvan Prodromou <evan@prodromou.name>
Mon, 7 Jul 2008 06:23:47 +0000 (02:23 -0400)
darcs-hash:20080707062347-84dde-fb13c5548d962092877fc374cea3f81ec2cca43e.gz

classes/User.php

index c5119de15f7e2b5219ccbc341f0f3cd81116f4c3..4a03630b5939216994fee83f6ffe3cb1a3df999e 100644 (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);
        }
 }