| Package home | Report new bug | New search | Development Roadmap | Status: Open | Feedback | All | Closed Since Version 1.5.0a1 |
| Bug #16431 | Warning: get_class() expects parameter 1 to be object, string given | ||
|---|---|---|---|
| Submitted: | 2009-07-12 17:32 UTC | Modified: | 2009-08-08 06:22 UTC |
| From: | sebastian | Assigned: | ashnazg |
| Status: | Closed | Package: | PhpDocumentor (version 1.4.2) |
| PHP Version: | 5.3.0 | OS: | Linux |
| Roadmaps: | 1.4.3 | ||
| Patch | phpdocumentor-bug-16431-fix | Revisions | |
|---|---|---|---|
| Revision | 2009-07-17 08:57 UTC | ||
| Developer | aharvey | ||
| Download patch |
Index: phpDocumentor/common.inc.php
===================================================================
--- phpDocumentor/common.inc.php (revision 284238)
+++ phpDocumentor/common.inc.php (working copy)
@@ -303,7 +303,10 @@
*/
function phpDocumentor_get_class($object)
{
- return strtolower(get_class($object));
+ if (is_object($object)) {
+ return strtolower(get_class($object));
+ }
+ return false;
}
?>