mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
fcc0783680
commit
5ca1e0b744
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user