Mail: Set the "reply" value when it is a reply
This commit is contained in:
parent
7c3a19be59
commit
d9f6a58229
|
@ -29,6 +29,10 @@ class Mail
|
||||||
{
|
{
|
||||||
$user = User::getById($msg['uid']);
|
$user = User::getById($msg['uid']);
|
||||||
|
|
||||||
|
if (!isset($msg['reply'])) {
|
||||||
|
$msg['reply'] = DBA::exists('mail', ['parent-uri' => $msg['parent-uri']]);
|
||||||
|
}
|
||||||
|
|
||||||
if (empty($msg['convid'])) {
|
if (empty($msg['convid'])) {
|
||||||
$mail = DBA::selectFirst('mail', ['convid'], ["`convid` != 0 AND `parent-uri` = ?", $msg['parent-uri']]);
|
$mail = DBA::selectFirst('mail', ['convid'], ["`convid` != 0 AND `parent-uri` = ?", $msg['parent-uri']]);
|
||||||
if (DBA::isResult($mail)) {
|
if (DBA::isResult($mail)) {
|
||||||
|
|
Loading…
Reference in a new issue