--- loncom/interface/loncoursedata.pm 2005/04/19 00:44:31 1.147 +++ loncom/interface/loncoursedata.pm 2005/07/14 02:28:25 1.149 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: loncoursedata.pm,v 1.147 2005/04/19 00:44:31 matthew Exp $ +# $Id: loncoursedata.pm,v 1.149 2005/07/14 02:28:25 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1214,7 +1214,7 @@ sub update_student_data { # # Set the students update time if ($Results[0] eq 'okay') { - &store_updatetime($student_id,$time_of_retrieval,$time_of_retrieval); + &store_updatetime($student_id,$time_of_retrieval); } # return @Results; @@ -1280,7 +1280,7 @@ sub store_student_data { $num_parameters ++; if ($sql_parameter !~ /''/) { $store_parameters_command .= $sql_parameter; - $rows_stored++; + #$rows_stored++; } } } @@ -1314,6 +1314,7 @@ sub store_student_data { $rows_stored++; } } + if (! $rows_stored) { return ($returnstatus, undef); } $store_parameters_command =~ s|,\n$||; $store_performance_command =~ s|,\n$||; my $start = Time::HiRes::time;