fixed PHP notice in implementorsOf

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@47581 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-01-03 00:49:10 +00:00
parent 817f7604c6
commit 3a47be1430

View File

@ -107,7 +107,7 @@ class ClassInfo {
*/
static function implementorsOf($interfaceName) {
global $_ALL_CLASSES;
return $_ALL_CLASSES['implementors'][$interfaceName];
return (isset($_ALL_CLASSES['implementors'][$interfaceName])) ? $_ALL_CLASSES['implementors'][$interfaceName] : false;
}
}
?>