--- loncom/interface/loncoursedata.pm 2004/06/29 04:30:00 1.136 +++ loncom/interface/loncoursedata.pm 2004/07/06 15:50:03 1.137 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: loncoursedata.pm,v 1.136 2004/06/29 04:30:00 raeburn Exp $ +# $Id: loncoursedata.pm,v 1.137 2004/07/06 15:50:03 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2530,7 +2530,15 @@ sub get_response_data { # &setup_table_names($courseid); my $symb_id = &get_symb_id($symb); + if (! defined($symb_id)) { + &Apache::lonnet::logthis('Unable to find symb for '.$symb.' in '.$courseid); + return undef; + } my $response_id = &get_part_id($response); + if (! defined($response_id)) { + &Apache::lonnet::logthis('Unable to find id for '.$response.' in '.$courseid); + return undef; + } # my $dbh = &Apache::lonmysql::get_dbh(); return undef if (! defined($dbh));