Home » Database » DB_DataObject » Bug #3058
typo in getLinkArray method
Details
| Submitted | 2004-12-30 09:23 UTC |
|---|---|
| From | xav at spotk dot net |
| Assigned | alan_k |
| Status | Closed |
| Package | DB_DataObject |
| PHP Version | Irrelevant |
| OS | all |
| Roadmaps | (Not assigned) |
Comments
[2004-12-30 09:23 UTC] xav at spotk dot net
Description:
------------
when calling the getLinkArray method, php throws an error because a typo in the method
is_a() test is not done on the good variable.
Reproduce code:
---------------
--- DataObject.php 2004-10-05 18:49:59.000000000 +0200
+++ DataObject.php 2004-12-30 10:22:10.000000000 +0100
@@ -2569,7 +2569,7 @@
$c = $this->factory($table);
- if (!is_a($obj,'DB_DataObject')) {
+ if (!is_a($c,'DB_DataObject')) {
$this->raiseError(
"getLinkArray:Could not find class for row $row, table $table",
DB_DATAOBJECT_ERROR_INVALIDCONFIG
[2004-12-30 09:29 UTC] xav at spotk dot net
I've already check that this bug is still in the latest cvs.