[LON-CAPA-cvs] cvs: modules /msu localenroll.pm
raeburn
raeburn@source.lon-capa.org
Fri, 04 Sep 2009 00:11:14 -0000
raeburn Fri Sep 4 00:11:14 2009 EDT
Modified files:
/modules/msu localenroll.pm
Log:
- Works better.
Index: modules/msu/localenroll.pm
diff -u modules/msu/localenroll.pm:1.43 modules/msu/localenroll.pm:1.44
--- modules/msu/localenroll.pm:1.43 Sat Aug 22 19:52:17 2009
+++ modules/msu/localenroll.pm Fri Sep 4 00:11:13 2009
@@ -1,6 +1,6 @@
# functions to glue school database system into Lon-CAPA for
# automated enrollment
-# $Id: localenroll.pm,v 1.43 2009/08/22 19:52:17 raeburn Exp $
+# $Id: localenroll.pm,v 1.44 2009/09/04 00:11:13 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -307,7 +307,7 @@
$crse =~tr/a-z/A-Z/;
$term =~tr/a-z/A-Z/;
my ($dbh,$dbflag,$database);
- if (defined($owner)) {
+ if ($owner ne '') {
my ($ownername,$ownerdom) = split(':',$owner);
if ($ownerdom eq 'msu') {
if ($owner =~ /^\w{2,8}$/) {