From a38d65442e03f0293b93f6d0d51ebba49880c309 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 14 Oct 2012 17:55:36 +0200 Subject: [PATCH] Breadcrumbs no longer allow nulled parameters See #780 --- .../files/lib/system/breadcrumb/Breadcrumb.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumb.class.php b/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumb.class.php index a4148d6c5d..da1730e522 100644 --- a/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumb.class.php +++ b/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumb.class.php @@ -31,9 +31,9 @@ class Breadcrumb { * @param string $label * @param string $url */ - public function __construct($label = null, $url = null) { - if ($label !== null) $this->setLabel($label); - if ($url !== null) $this->setURL($url); + public function __construct($label, $url) { + $this->setLabel($label); + $this->setURL($url); } /** -- 2.20.1