mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:00:15 +00:00
Check for reply existence before using its values in Model\Mail
- Address https://github.com/friendica/friendica/issues/10474#issuecomment-925263894
This commit is contained in:
parent
9d77958247
commit
0bb169b4ed
1 changed files with 1 additions and 3 deletions
|
@ -74,9 +74,7 @@ class Mail
|
|||
return false;
|
||||
}
|
||||
|
||||
if ($msg['reply']) {
|
||||
$reply = DBA::selectFirst('mail', ['uri', 'uri-id'], ['parent-uri' => $msg['parent-uri'], 'reply' => false]);
|
||||
|
||||
if ($msg['reply'] && DBA::isResult($reply = DBA::selectFirst('mail', ['uri', 'uri-id'], ['parent-uri' => $msg['parent-uri'], 'reply' => false]))) {
|
||||
$msg['thr-parent'] = $reply['uri'];
|
||||
$msg['thr-parent-id'] = $reply['uri-id'];
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue