From c3037906cc230e7e826f95f2235f63f123fa2124 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Tue, 29 Aug 2023 16:15:59 +0800 Subject: [PATCH] * Fix bug #37725, change bug mailto is null error. --- module/bug/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bug/model.php b/module/bug/model.php index 2e56c0dfb2..b9c507d65d 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -3602,7 +3602,7 @@ class bugModel extends model { /* Set toList and ccList. */ $toList = $bug->assignedTo; - $ccList = trim($bug->mailto, ','); + $ccList = $bug->mailto ? trim($bug->mailto, ',') : ''; if(empty($toList)) { if(empty($ccList)) return false;