MINOR: Fix php notice

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60157 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2008-08-08 03:52:48 +00:00
parent fcc0783680
commit 5ca1e0b744

View File

@ -132,7 +132,7 @@ class ClassInfo {
$items = $_ALL_CLASSES['parents'][$class]; $items = $_ALL_CLASSES['parents'][$class];
$items[$class] = $class; $items[$class] = $class;
if($onlyWithTables) foreach($items as $item) { if($onlyWithTables) foreach($items as $item) {
if(!$_ALL_CLASSES['hastable'][$item]) unset($items[$item]); if(!isset($_ALL_CLASSES['hastable'][$item]) || !$_ALL_CLASSES['hastable'][$item]) unset($items[$item]);
} }
return $items; return $items;
} }
@ -146,4 +146,4 @@ class ClassInfo {
return (isset($_ALL_CLASSES['implementors'][$interfaceName])) ? $_ALL_CLASSES['implementors'][$interfaceName] : false; return (isset($_ALL_CLASSES['implementors'][$interfaceName])) ? $_ALL_CLASSES['implementors'][$interfaceName] : false;
} }
} }
?> ?>