mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR initializing $dataclasses properly in ClassInfo
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@58123 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
a5037b82d5
commit
6ebf31ba64
@ -66,6 +66,8 @@ class ClassInfo {
|
||||
global $_ALL_CLASSES;
|
||||
if (is_object($class)) $class = get_class($class);
|
||||
|
||||
$dataClasses = array();
|
||||
|
||||
if(!$_ALL_CLASSES['parents'][$class]) user_error("ClassInfo::dataClassesFor() no parents for $class", E_USER_WARNING);
|
||||
foreach($_ALL_CLASSES['parents'][$class] as $subclass) {
|
||||
if(isset($_ALL_CLASSES['hastable'][$subclass])){
|
||||
|
Loading…
x
Reference in New Issue
Block a user