From: Evan Prodromou Date: Wed, 21 Mar 2012 17:05:02 +0000 (-0400) Subject: double-check profile X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8706d8d351e0a4bffc710d50ab95a1252e57cb13;p=quix0rs-gnu-social.git double-check profile --- diff --git a/classes/Notice.php b/classes/Notice.php index 58ae75fa68..a7c678e1cf 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -2474,7 +2474,7 @@ class Notice extends Managed_DataObject $author = $this->getProfile(); if ($author->hasRole(Profile_role::SILENCED)) { - if (!$profile->hasRole(Profile_role::MODERATOR)) { + if (empty($profile) || !$profile->hasRole(Profile_role::MODERATOR)) { return true; } }