[LON-CAPA-cvs] cvs: loncom /homework radiobuttonresponse.pm

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 25 Sep 2002 19:39:49 -0000


albertel		Wed Sep 25 15:39:49 2002 EDT

  Modified files:              
    /loncom/homework	radiobuttonresponse.pm 
  Log:
  - silly masking error
  
  
Index: loncom/homework/radiobuttonresponse.pm
diff -u loncom/homework/radiobuttonresponse.pm:1.49 loncom/homework/radiobuttonresponse.pm:1.50
--- loncom/homework/radiobuttonresponse.pm:1.49	Mon Sep 23 18:32:41 2002
+++ loncom/homework/radiobuttonresponse.pm	Wed Sep 25 15:39:49 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # mutliple choice style responses
 #
-# $Id: radiobuttonresponse.pm,v 1.49 2002/09/23 22:32:41 albertel Exp $
+# $Id: radiobuttonresponse.pm,v 1.50 2002/09/25 19:39:49 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -156,7 +156,6 @@
 }
 
 sub getfoilcounts {
-  my ($max)=@_;
   my @names;
   my $truecnt=0;
   my $falsecnt=0;
@@ -171,7 +170,7 @@
       $falsecnt++;
     }
   }
-  return ($truecnt,$falsecnt,$max);
+  return ($truecnt,$falsecnt);
 }
 
 sub displayallfoils {
@@ -215,7 +214,7 @@
   my @truelist;
   my @falselist;
   my @whichfalse =();
-  my ($truecnt,$falsecnt,$max) = &getfoilcounts($max);
+  my ($truecnt,$falsecnt) = &getfoilcounts();
   my $count=0;
   # we will add in 1 of the true statements
   if (($falsecnt+1)>$max) { $count=$max } else { $count=$falsecnt+1; }