mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
Controller::CreatePage : use @list() intead of 3 lines with count() tests
Thanks Hipska ! Co-authored-by: Thomas Casteleyn <thomas.casteleyn@super-visions.com>
This commit is contained in:
@@ -571,9 +571,7 @@ abstract class Controller
|
||||
if ($this->IsOperationBreadCrumbEnabled()) {
|
||||
$aBreadCrumbEntry = $this->GetOperationBreadCrumbEntry();
|
||||
if ((false === empty($aBreadCrumbEntry)) && (is_array($aBreadCrumbEntry)) && (count($aBreadCrumbEntry) >= 3)) {
|
||||
list($sId, $sTitle, $sDescription) = $aBreadCrumbEntry;
|
||||
$sUrl = (count($aBreadCrumbEntry) >= 4) ? $aBreadCrumbEntry[3] : '';
|
||||
$sIcon = (count($aBreadCrumbEntry) >= 5) ? $aBreadCrumbEntry[4] : '';
|
||||
@list($sId, $sTitle, $sDescription, $sUrl, $sIcon) = $aBreadCrumbEntry;
|
||||
$this->m_oPage->SetBreadCrumbEntry($sId, $sTitle, $sDescription, $sUrl, $sIcon);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user