--- loncom/interface/loncommon.pm 2008/09/19 23:09:29 1.679.2.5 +++ loncom/interface/loncommon.pm 2008/09/29 22:58:41 1.679.2.6 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.679.2.5 2008/09/19 23:09:29 raeburn Exp $ +# $Id: loncommon.pm,v 1.679.2.6 2008/09/29 22:58:41 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -8330,8 +8330,10 @@ sub build_recipient_list { } elsif ($origmail ne '') { push(@recipients,$origmail); } - if ($defmail ne '') { - push(@recipients,$defmail); + if (defined($defmail)) { + if ($defmail ne '') { + push(@recipients,$defmail); + } } if ($otheremails) { my @others;