[LON-CAPA-cvs] cvs: loncom /interface loncreateuser.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Sun, 23 Mar 2003 09:06:08 -0000
albertel Sun Mar 23 04:06:08 2003 EDT
Modified files:
/loncom/interface loncreateuser.pm
Log:
- print out course ids for courses that have unavailable descriptions
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.50 loncom/interface/loncreateuser.pm:1.51
--- loncom/interface/loncreateuser.pm:1.50 Sun Mar 23 04:02:38 2003
+++ loncom/interface/loncreateuser.pm Sun Mar 23 04:06:08 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Create a user
#
-# $Id: loncreateuser.pm,v 1.50 2003/03/23 09:02:38 albertel Exp $
+# $Id: loncreateuser.pm,v 1.51 2003/03/23 09:06:08 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.50 2003/03/23 09:02:38 albertel Exp $
+# $Id: loncreateuser.pm,v 1.51 2003/03/23 09:06:08 albertel Exp $
###
package Apache::loncreateuser;
@@ -292,7 +292,12 @@
if ($area =~ /^\/(\w+)\/(\d\w+)/ ) {
my %coursedata=
&Apache::lonnet::coursedescription($1.'_'.$2);
- my $carea='Course: '.$coursedata{'description'};
+ my $carea;
+ if (defined($coursedata{'description'})) {
+ $carea='Course: '.$coursedata{'description'};
+ } else {
+ $carea='Unavailable course: '.$area;
+ }
$inccourses{$1.'_'.$2}=1;
if (&Apache::lonnet::allowed('c'.$role_code,$1.'/'.$2)) {
$allowed=1;