diff --git a/lib/WebGUI/Paginator.pm b/lib/WebGUI/Paginator.pm index 3093baf32..b56c2cb99 100644 --- a/lib/WebGUI/Paginator.pm +++ b/lib/WebGUI/Paginator.pm @@ -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) {