From: Alexander Ebert Date: Sun, 14 Oct 2012 15:55:36 +0000 (+0200) Subject: Breadcrumbs no longer allow nulled parameters X-Git-Tag: 2.0.0_Beta_1~870^2~21 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a38d65442e03f0293b93f6d0d51ebba49880c309;p=GitHub%2FWoltLab%2FWCF.git Breadcrumbs no longer allow nulled parameters See #780 --- 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); } /**