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

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Tue, 03 Jun 2008 03:07:38 -0000


raeburn		Mon Jun  2 23:07:38 2008 EDT

  Modified files:              
    /loncom/interface	selfenroll.pm 
  Log:
  - Eliminate an unwanted "or" after the last option for creating an account.
  
  
Index: loncom/interface/selfenroll.pm
diff -u loncom/interface/selfenroll.pm:1.3 loncom/interface/selfenroll.pm:1.4
--- loncom/interface/selfenroll.pm:1.3	Wed May 14 16:06:51 2008
+++ loncom/interface/selfenroll.pm	Mon Jun  2 23:07:38 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Allow users to self-enroll in a course
 #
-# $Id: selfenroll.pm,v 1.3 2008/05/14 20:06:51 raeburn Exp $
+# $Id: selfenroll.pm,v 1.4 2008/06/03 03:07:38 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -171,7 +171,7 @@
             $r->print('<li>'.&mt('Otherwise:').'<br />');
             my $count = 0;
             foreach my $type ('sso','login','email') { 
-                if ($count> 0) {
+                if (($count > 0) && ($count <@cancreate)) {
                     $r->print('&nbsp;, '.&mt('or').'<br />');
                 }
                 if (grep(/^$type$/,@cancreate)) {