ZF-3804: Don't assume a fetch mode in the DbSelect adapter
Description
As reported by Andy Collington:
Line 84 of Zend_Paginator_Adapter_DbSelect needs to have the fetch mode set, such as:
$result = $rowCount->query(Zend_Db::FETCH_ASSOC)->fetch();
Because on line 86 it assumes the results are retrieved in an array format but it's possible that someone has set the default fetch mode to be a class (as I had).
Comments
Posted by Matthew Ratzloff (mratzloff) on 2008-08-07T20:29:48.000+0000
Fixed in revisions 10794-10795.