From dd7e73e4132fec3bde153753ee3715253304e9ef Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Wed, 19 Jan 2022 18:54:26 +0100 Subject: [PATCH] :art: Simpler code Thanks Hipska ! --- sources/application/TwigBase/Controller/Controller.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sources/application/TwigBase/Controller/Controller.php b/sources/application/TwigBase/Controller/Controller.php index 286462ea5..0d803dfc3 100644 --- a/sources/application/TwigBase/Controller/Controller.php +++ b/sources/application/TwigBase/Controller/Controller.php @@ -572,13 +572,7 @@ abstract class Controller $aBreadCrumbEntry = $this->GetOperationBreadCrumbEntry(); if ((false === empty($aBreadCrumbEntry)) && (is_array($aBreadCrumbEntry)) && (count($aBreadCrumbEntry) >= 3)) { @list($sId, $sTitle, $sDescription, $sUrl, $sIcon) = $aBreadCrumbEntry; - if (false === isset($sUrl)) { - $sUrl = ''; - } - if (false === isset($sIcon)) { - $sIcon = ''; - } - $this->m_oPage->SetBreadCrumbEntry($sId, $sTitle, $sDescription, $sUrl, $sIcon); + $this->m_oPage->SetBreadCrumbEntry($sId, $sTitle, $sDescription, $sUrl ?: '', $sIcon ?: ''); } } else { $this->m_oPage->DisableBreadCrumb();