Merge pull request #7124 from annando/mail-reply

Mail: Set the "reply" value when it is a reply
pull/7125/head
Hypolite Petovan 2019-05-09 16:57:19 -04:00 zatwierdzone przez GitHub
commit 860338a675
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -29,6 +29,10 @@ class Mail
{
$user = User::getById($msg['uid']);
if (!isset($msg['reply'])) {
$msg['reply'] = DBA::exists('mail', ['parent-uri' => $msg['parent-uri']]);
}
if (empty($msg['convid'])) {
$mail = DBA::selectFirst('mail', ['convid'], ["`convid` != 0 AND `parent-uri` = ?", $msg['parent-uri']]);
if (DBA::isResult($mail)) {