[LON-CAPA-cvs] cvs: loncom(version_2_8_X) /homework grades.pm

raeburn raeburn@source.lon-capa.org
Wed, 24 Dec 2008 12:33:28 -0000


raeburn		Wed Dec 24 12:33:28 2008 EDT

  Modified files:              (Branch: version_2_8_X)
    /loncom/homework	grades.pm 
  Log:
  - Some $analysis{} to $analysis->{} changes from backport of 1.542 
    (missed on the first pass). 
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.528.2.4 loncom/homework/grades.pm:1.528.2.5
--- loncom/homework/grades.pm:1.528.2.4	Wed Dec 24 07:06:08 2008
+++ loncom/homework/grades.pm	Wed Dec 24 12:33:28 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.528.2.4 2008/12/24 07:06:08 raeburn Exp $
+# $Id: grades.pm,v 1.528.2.5 2008/12/24 12:33:28 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -7349,11 +7349,11 @@
                     my ($numbub,$numshown);
                     if ($analysis->{$part_id.'.type'} eq 'optionresponse') {
                         if (ref($analysis->{$part_id.'.options'}) eq 'ARRAY') {
-                            $numbub = scalar(@{$analysis{$part_id.'.options'}});
+                            $numbub = scalar(@{$analysis->{$part_id.'.options'}});
                         }
                     } elsif ($analysis->{$part_id.'.type'} eq 'matchresponse') {
-                        if (ref($analysis{$part_id.'.items'}) eq 'ARRAY') {
-                            $numbub = scalar(@{$analysis{$part_id.'.items'}});
+                        if (ref($analysis->{$part_id.'.items'}) eq 'ARRAY') {
+                            $numbub = scalar(@{$analysis->{$part_id.'.items'}});
                         }
                     } elsif ($analysis->{$part_id.'.type'} eq 'rankresponse') {
                         if (ref($analysis->{$part_id.'.foils'}) eq 'ARRAY') {