Commit: 030fe4f7911a79f5901a63c34c912ce5e815225c

Author: Nate Abele | Date: 2009-11-13 15:41:01 -0500
Catching class-load errors in `BrowserController`.
diff --git a/controllers/BrowserController.php b/controllers/BrowserController.php index 431713f..9e9bd85 100644 --- a/controllers/BrowserController.php +++ b/controllers/BrowserController.php @@ -2,6 +2,7 @@ namespace li3_docs\controllers; +use \Exception; use \DirectoryIterator; use \lithium\core\Libraries; use \lithium\util\reflection\Inspector; @@ -90,7 +91,11 @@ class BrowserController extends \lithium\action\Controller { if (preg_match('/\\\(libraries|plugins)\\\/', $class)) { return false; } - return get_parent_class($class) == $name; + try { + return get_parent_class($class) == $name; + } catch (Exception $e) { + return false; + } }); sort($object['subClasses']); break;