[LON-CAPA-cvs] cvs: loncom(version_2_10_X) /interface coursecatalog.pm

raeburn raeburn@source.lon-capa.org
Tue, 25 Jan 2011 09:46:43 -0000


raeburn		Tue Jan 25 09:46:43 2011 EDT

  Modified files:              (Branch: version_2_10_X)
    /loncom/interface	coursecatalog.pm 
  Log:
  - Backport 1.67.
  
  
Index: loncom/interface/coursecatalog.pm
diff -u loncom/interface/coursecatalog.pm:1.58.4.6 loncom/interface/coursecatalog.pm:1.58.4.7
--- loncom/interface/coursecatalog.pm:1.58.4.6	Wed Dec 22 04:14:09 2010
+++ loncom/interface/coursecatalog.pm	Tue Jan 25 09:46:43 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler for displaying the course catalog interface
 #
-# $Id: coursecatalog.pm,v 1.58.4.6 2010/12/22 04:14:09 raeburn Exp $
+# $Id: coursecatalog.pm,v 1.58.4.7 2011/01/25 09:46:43 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -805,8 +805,8 @@
             $selfenroll_end = $courses->{$course}{'selfenroll_end_date'};
             $categories = $courses->{$course}{'categories'};
             push(@owners,$singleowner);
-            if (ref($courses->{$course}{'co-owners'}) eq 'ARRAY') {
-                foreach my $item (@{$courses->{$course}{'co-owners'}}) {
+            if ($courses->{$course}{'co-owners'} ne '') {
+                foreach my $item (split(/,/,$courses->{$course}{'co-owners'})) {
                     push(@owners,$item);
                 }
             }