cvs: pear /Structures_DataGrid/DataGrid/Record DataObject.php
| From: | Andrew Nagy | Date: | Mon, 16 Aug 2004 15:50:08 +0000 |
| Subject: | cvs: pear /Structures_DataGrid/DataGrid/Record DataObject.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-22979@lists.php.net to get a copy of this message | ||
asnagy Mon Aug 16 11:50:08 2004 EDT
Modified files:
/pear/Structures_DataGrid/DataGrid/Record DataObject.php
Log:
Fixed bug #2123
http://cvs.php.net/diff.php/pear/Structures_DataGrid/DataGrid/Record/DataObject.php?r1=1.6&r2=1.7&ty=u
Index: pear/Structures_DataGrid/DataGrid/Record/DataObject.php
diff -u pear/Structures_DataGrid/DataGrid/Record/DataObject.php:1.6
pear/Structures_DataGrid/DataGrid/Record/DataObject.php:1.7
--- pear/Structures_DataGrid/DataGrid/Record/DataObject.php:1.6 Tue Aug 10 09:27:50 2004
+++ pear/Structures_DataGrid/DataGrid/Record/DataObject.php Mon Aug 16 11:50:08 2004
@@ -16,14 +16,14 @@
// | Author: Andrew Nagy <asnagy@webitecture.org> |
// +----------------------------------------------------------------------+
//
-// $Id: DataObject.php,v 1.6 2004/08/10 13:27:50 asnagy Exp $
+// $Id: DataObject.php,v 1.7 2004/08/16 15:50:08 asnagy Exp $
require_once 'Structures/DataGrid/Record.php';
/**
* Structures_DataGrid_Record_DataObject Class
*
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.7 $
* @author Andrew S. Nagy <asnagy@webitecture.org>
* @access public
* @package Structures_DataGrid
@@ -46,7 +46,7 @@
function setRecord($data)
{
- if (strtolower(get_parent_class($data)) == 'db_dataobject') {
+ if (strtolower(is_subclass_of($data)) == 'db_dataobject') {
parent::setRecord($data->toArray());
} else {
return new PEAR_Error('Invalid data type. ' .