From: Alexander Ebert Date: Sat, 9 Jul 2016 20:35:37 +0000 (+0200) Subject: Guard against broken cache X-Git-Tag: 3.0.0_Beta_1~1231^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d073d7691178a875ec081e2d91eb349b91dc8d30;p=GitHub%2FWoltLab%2FWCF.git Guard against broken cache --- diff --git a/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumbs.class.php b/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumbs.class.php index 6169e515a1..fecbd71a28 100644 --- a/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumbs.class.php +++ b/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumbs.class.php @@ -95,7 +95,7 @@ class Breadcrumbs extends SingletonFactory implements \Countable, \Iterator { if ($location['pageID']) { $page = PageCache::getInstance()->getPage($location['pageID']); - while ($page->parentPageID) { + while ($page !== null && $page->parentPageID) { $page = PageCache::getInstance()->getPage($page->parentPageID); array_unshift($locations, [