Some small notice prevented
This commit is contained in:
parent
6436145909
commit
71fe689aae
|
@ -775,12 +775,12 @@ class Post extends BaseObject
|
||||||
*/
|
*/
|
||||||
private function getDefaultText()
|
private function getDefaultText()
|
||||||
{
|
{
|
||||||
if (!local_user()) {
|
$a = self::getApp();
|
||||||
|
|
||||||
|
if (!local_user() || empty($a->profile['addr'])) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$a = self::getApp();
|
|
||||||
|
|
||||||
$item = Item::selectFirst(['author-addr'], ['id' => $this->getId()]);
|
$item = Item::selectFirst(['author-addr'], ['id' => $this->getId()]);
|
||||||
if (!DBA::isResult($item) || empty($item['author-addr'])) {
|
if (!DBA::isResult($item) || empty($item['author-addr'])) {
|
||||||
// Should not happen
|
// Should not happen
|
||||||
|
|
Loading…
Reference in a new issue