]> git.mxchange.org Git - friendica.git/commitdiff
Avoid fatal error on the community page
authorMichael <heluecht@pirati.ca>
Sun, 20 Sep 2020 17:37:09 +0000 (17:37 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 20 Sep 2020 17:37:09 +0000 (17:37 +0000)
src/Object/Post.php

index 0de7bd072b9659e9acc689ed8bcd5bae55b91dd1..51b952d610481dc326793d3e83fd5164e7bfd79c 100644 (file)
@@ -977,7 +977,7 @@ class Post
 
                if ($this->isToplevel()) {
                        if ($conv->getMode() !== 'profile') {
-                               if ($this->getDataValue('wall') && !$this->getDataValue('self')) {
+                               if ($this->getDataValue('wall') && !$this->getDataValue('self') && !empty($a->page_contact)) {
                                        // On the network page, I am the owner. On the display page it will be the profile owner.
                                        // This will have been stored in $a->page_contact by our calling page.
                                        // Put this person as the wall owner of the wall-to-wall notice.