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

albertel lon-capa-cvs@mail.lon-capa.org
Sun, 23 Mar 2003 09:02:38 -0000


albertel		Sun Mar 23 04:02:38 2003 EDT

  Modified files:              
    /loncom/interface	loncreateuser.pm 
  Log:
  - print out course id for courses with no description available
  
  
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.49 loncom/interface/loncreateuser.pm:1.50
--- loncom/interface/loncreateuser.pm:1.49	Sun Mar 23 03:31:41 2003
+++ loncom/interface/loncreateuser.pm	Sun Mar 23 04:02:38 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Create a user
 #
-# $Id: loncreateuser.pm,v 1.49 2003/03/23 08:31:41 albertel Exp $
+# $Id: loncreateuser.pm,v 1.50 2003/03/23 09:02:38 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -46,7 +46,7 @@
 # 05/10,10/16 Gerd Kortemeyer 
 # 02/11/02 Matthew Hall
 #
-# $Id: loncreateuser.pm,v 1.49 2003/03/23 08:31:41 albertel Exp $
+# $Id: loncreateuser.pm,v 1.50 2003/03/23 09:02:38 albertel Exp $
 ###
 
 package Apache::loncreateuser;
@@ -831,6 +831,7 @@
 	$thiscourse=~s:_:/:g;
 	my %coursedata=&Apache::lonnet::coursedescription($thiscourse);
 	my $area=$coursedata{'description'};
+	if (!defined($area)) { $area='Unavailable course: '.$_; }
 	my $bgcol=$thiscourse;
 	$bgcol=~s/[^8-9b-e]//g;
 	$bgcol=substr($bgcol.$bgcol.$bgcol.'ffffff',0,6);