fixed bug 664327

This commit is contained in:
JT Smith 2003-01-11 16:43:46 +00:00
parent ac9677451c
commit e4d1d494e0

View file

@ -487,7 +487,7 @@ A DBI-style database handler. Defaults to the WebGUI site handler.
sub setDataByQuery {
my ($sth, $pageCount, $rowCount, $dbh, $sql, $self, @row, $data);
($self, $sql, $dbh) = @_;
$dbh |= $session{dbh};
$dbh ||= $session{dbh};
$sth = WebGUI::SQL->read($sql);
$pageCount = 1;
while ($data = $sth->hashRef) {