MINOR Partially reverted r98382 which added unnecessarily defensive checking to Hierarchy->allChildren()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@98404 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-02-08 04:02:40 +00:00 committed by Sam Minnee
parent badd45a663
commit 5ae6f3b9e4

View File

@ -416,7 +416,7 @@ class Hierarchy extends DataObjectDecorator {
// Cache the allChildren data, so that future requests will return the references to the same
// object. This allows the mark..() system to work appropriately.
if(!$this->_cache_allChildren) {
$this->_cache_allChildren = $this->owner ? $this->owner->stageChildren(true) : null;
$this->_cache_allChildren = $this->owner->stageChildren(true);
}
return $this->_cache_allChildren;