Merge pull request #6595 from annando/notice

Some small notice prevented
This commit is contained in:
Tobias Diekershoff 2019-02-06 09:02:49 +01:00 committed by GitHub
commit cbe2d1745b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -775,12 +775,12 @@ class Post extends BaseObject
*/
private function getDefaultText()
{
if (!local_user()) {
$a = self::getApp();
if (!local_user() || empty($a->profile['addr'])) {
return;
}
$a = self::getApp();
$item = Item::selectFirst(['author-addr'], ['id' => $this->getId()]);
if (!DBA::isResult($item) || empty($item['author-addr'])) {
// Should not happen