cvs: pear /Structures_DataGrid/DataGrid/DataSource DataObject.php

From: Date: Wed, 15 Dec 2004 16:25:51 +0000
Subject: cvs: pear /Structures_DataGrid/DataGrid/DataSource DataObject.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-27450@lists.php.net to get a copy of this message
asnagy Wed Dec 15 11:25:51 2004 EDT Modified files: /pear/Structures_DataGrid/DataGrid/DataSource DataObject.php Log: Removed unnecessary if around $dataobject->find() http://cvs.php.net/diff.php/pear/Structures_DataGrid/DataGrid/DataSource/DataObject.php?r1=1.12&r2=1.13&ty=u Index: pear/Structures_DataGrid/DataGrid/DataSource/DataObject.php diff -u pear/Structures_DataGrid/DataGrid/DataSource/DataObject.php:1.12 pear/Structures_DataGrid/DataGrid/DataSource/DataObject.php:1.13 --- pear/Structures_DataGrid/DataGrid/DataSource/DataObject.php:1.12 Wed Dec 15 11:15:54 2004 +++ pear/Structures_DataGrid/DataGrid/DataSource/DataObject.php Wed Dec 15 11:25:50 2004 @@ -17,7 +17,7 @@ // | Andrew Nagy <asnagy@webitecture.org> | // +----------------------------------------------------------------------+ // -// $Id: DataObject.php,v 1.12 2004/12/15 16:15:54 asnagy Exp $ +// $Id: DataObject.php,v 1.13 2004/12/15 16:25:50 asnagy Exp $ require_once 'Structures/DataGrid/DataSource.php'; @@ -38,7 +38,7 @@ * same kind of information as the "fields" options. If the "fields" * option is set, this one will not be used. Default : "fb_fieldsToRender". * - * @version $Revision: 1.12 $ + * @version $Revision: 1.13 $ * @author Olivier Guilyardi <olivier@samalyse.com> * @author Andrew Nagy <asnagy@webitecture.org> * @access public @@ -164,9 +164,7 @@ $this->_dataobject->limit($len); } - if (!($result = $this->_dataobject->find())) { - return new PEAR_Error('Couldn\'t fetch data'); - } + $result = $this->_dataobject->find(); } // Retrieving data

« previous php.pear.cvs (#27450) next »