--- loncom/interface/loncoursedata.pm 2006/02/04 20:03:30 1.152 +++ loncom/interface/loncoursedata.pm 2006/02/05 18:49:47 1.153 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: loncoursedata.pm,v 1.152 2006/02/04 20:03:30 bowersj2 Exp $ +# $Id: loncoursedata.pm,v 1.153 2006/02/05 18:49:47 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1873,8 +1873,9 @@ sub execute_SQL_request { my ($dbh,$request)=@_; # &Apache::lonnet::logthis($request); my $sth = $dbh->prepare($request); - if (!$sth) - { die $dbh->errstr . " SQL: $request"; } + if (!$sth) { + die($dbh->errstr . " SQL: $request"); + } $sth->execute(); my $row = $sth->fetchrow_arrayref(); if (ref($row) eq 'ARRAY' && scalar(@$row)>0) {