Home » Database » DB_DataObject » Bug #2330
Notice on line 3468
Details
| Submitted | 2004-09-14 16:50 UTC |
|---|---|
| From | brandon at osuosl dot org |
| Assigned | alan_k |
| Status | Closed |
| Package | DB_DataObject |
| PHP Version | 5.0.1 |
| OS | Debian Unstable |
| Roadmaps | (Not assigned) |
Comments
[2004-09-14 16:50 UTC] brandon at osuosl dot org
Description:
------------
If you use a static function and there is an error a notice is also thrown for $this being undefined.
On line 3468 change
(@is_object($this) && is_subclass_of($this,'db_dataobject'))
to
(isset($this) && is_object($this) && is_subclass_of($this,'db_dataobject'))
Thanks again.
Reproduce code:
---------------
DB_DataObject::factory('NON_EXISTANT_TABLE_FOO');