]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Notice.php
OStatus cleanup...
[quix0rs-gnu-social.git] / classes / Notice.php
index f9f38635797f44456610cb973baf2611bdebd3a3..fca1c599ce39830993f8304397a11cefb8470799 100644 (file)
@@ -1176,6 +1176,10 @@ class Notice extends Memcached_DataObject
         // Figure out who that is.
 
         $sender = Profile::staticGet('id', $profile_id);
+        if (empty($sender)) {
+            return null;
+        }
+
         $recipient = common_relative_profile($sender, $nickname, common_sql_now());
 
         if (empty($recipient)) {