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

raeburn raeburn at source.lon-capa.org
Tue Sep 27 10:50:12 EDT 2011


raeburn		Tue Sep 27 14:50:12 2011 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm 
  Log:
  - &get_all_courseroles needs each of 3rd, 4th and 5th args to be ref to HASH.
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.350 loncom/interface/lonmenu.pm:1.351
--- loncom/interface/lonmenu.pm:1.350	Mon Sep 26 04:27:44 2011
+++ loncom/interface/lonmenu.pm	Tue Sep 27 14:50:12 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.350 2011/09/26 04:27:44 raeburn Exp $
+# $Id: lonmenu.pm,v 1.351 2011/09/27 14:50:12 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1425,7 +1425,7 @@
 
 sub get_all_courseroles {
     my ($cdom,$cnum,$courseroles,$seccount,$courseprivs) = @_;
-    unless ((ref($courseroles) eq 'HASH') && (ref($seccount) eq 'HASH') ||
+    unless ((ref($courseroles) eq 'HASH') && (ref($seccount) eq 'HASH') &&
             (ref($courseprivs) eq 'HASH')) {
         return;
     }




More information about the LON-CAPA-cvs mailing list