[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Mon, 29 Sep 2008 22:53:20 -0000


raeburn		Mon Sep 29 18:53:20 2008 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  - Eliminate warnings from CHECKRPMS by checking $defmail is not undef.
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.687 loncom/interface/loncommon.pm:1.688
--- loncom/interface/loncommon.pm:1.687	Thu Sep 18 23:27:04 2008
+++ loncom/interface/loncommon.pm	Mon Sep 29 18:53:20 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.687 2008/09/19 03:27:04 raeburn Exp $
+# $Id: loncommon.pm,v 1.688 2008/09/29 22:53:20 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -8404,8 +8404,10 @@
     } 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;