mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-29 20:59:23 +02:00
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:
parent
bd9c74e7a6
commit
4e5bdfc3fe
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user