From e4d1d494e0915dfca99f0ee52fa5a2263f76ad95 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sat, 11 Jan 2003 16:43:46 +0000 Subject: [PATCH] fixed bug 664327 --- lib/WebGUI/Paginator.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {