Removed notice level error (merged from branches/2.2.0@45907, r45442)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@46098 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-12-02 21:28:53 +00:00
parent bd9c74e7a6
commit 4e5bdfc3fe

View File

@ -361,7 +361,7 @@ class SiteTree extends DataObject {
self::$currentPageID = Director::currentPage() ? Director::currentPage()->ID : null;
if(!isset(self::$currentPageID)) {
self::$currentPageID = -1;
$nextID = isset(Director::currentPage()->Parent->ID)
$nextID = (Director::currentPage() && isset(Director::currentPage()->Parent->ID))
? Director::currentPage()->Parent->ID
: null;
} else {