Avoiding notice

This commit is contained in:
Michael 2021-02-15 07:44:51 +00:00
parent b51dc4dd91
commit 2b76ff61ad
2 changed files with 4 additions and 5 deletions

View file

@ -55,6 +55,8 @@ class Delivery
{
Logger::info('Invoked', ['cmd' => $cmd, 'target' => $post_uriid, 'sender_uid' => $sender_uid, 'contact' => $contact_id]);
$target_id = $post_uriid;
if (!empty($sender_uid)) {
$post = Post::selectFirst(['id'], ['uri-id' => $post_uriid, 'uid' => $sender_uid]);
if (!DBA::isResult($post)) {
@ -69,8 +71,6 @@ class Delivery
$sender_uid = $post['uid'];
$post_uriid = $post['uri-id'];
}
} else {
$target_id = $post_uriid;
}
$top_level = false;