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;