Permalink
Browse files

MINOR Partially reverted r98382 which added unnecessarily defensive c…

…hecking to Hierarchy->allChildren() (from r98404)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102652 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent dc21cb9 commit 6a1cb91c9f70bed5c1d57701eae809cc96b67820 @chillu chillu committed Apr 13, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/model/Hierarchy.php
View
@@ -416,7 +416,7 @@ public function AllChildren() {
// 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;

0 comments on commit 6a1cb91

Please sign in to comment.