cvs: pear /Structures_DataGrid DataGrid.php
| From: | Mark Wiesemann | Date: | Sat, 13 Jan 2007 20:24:44 +0000 |
| Subject: | cvs: pear /Structures_DataGrid DataGrid.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-44216@lists.php.net to get a copy of this message | ||
wiesemann Sat Jan 13 20:24:44 2007 UTC
Modified files:
/pear/Structures_DataGrid DataGrid.php
Log:
- Bug #9820: error got lost when DataSource fetching fails
http://cvs.php.net/viewvc.cgi/pear/Structures_DataGrid/DataGrid.php?r1=1.125&r2=1.126&diff_format=u
Index: pear/Structures_DataGrid/DataGrid.php
diff -u pear/Structures_DataGrid/DataGrid.php:1.125 pear/Structures_DataGrid/DataGrid.php:1.126
--- pear/Structures_DataGrid/DataGrid.php:1.125 Mon Jan 1 10:31:18 2007
+++ pear/Structures_DataGrid/DataGrid.php Sat Jan 13 20:24:44 2007
@@ -35,9 +35,9 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * CSV file id: $Id: DataGrid.php,v 1.125 2007/01/01 10:31:18 wiesemann Exp $
+ * CSV file id: $Id: DataGrid.php,v 1.126 2007/01/13 20:24:44 wiesemann Exp $
*
- * @version $Revision: 1.125 $
+ * @version $Revision: 1.126 $
* @package Structures_DataGrid
* @category Structures
* @license http://opensource.org/licenses/bsd-license.php
New BSD License
@@ -1145,7 +1145,10 @@
{
if (is_subclass_of($source, 'structures_datagrid_datasource')) {
$this->_dataSource =& $source;
- $this->fetchDataSource();
+ $result = $this->fetchDataSource();
+ if (PEAR::isError($result)) {
+ return $result;
+ }
if ($columnSet = $this->_dataSource->getColumns()) {
$this->columnSet = array_merge($this->columnSet, $columnSet);
}