Verified Commit db8ac6ac authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚑 fix(webservice) Please sonar by removing unused var

issue #6061
parent 8a4203c6
......@@ -385,7 +385,7 @@ class fdRestService extends fdRPCService
if ($tabobject->by_object[$tab]->isActivatable() &&
!$tabobject->by_object[$tab]->isActive()
) {
list($disabled, $buttonHtmlText, $htmlText) = $tabobject->by_object[$tab]->getDisplayHeaderInfos();
list($disabled, , $htmlText) = $tabobject->by_object[$tab]->getDisplayHeaderInfos();
if ($disabled) {
throw new WebServiceError(htmlunescape($htmlText));
}
......
......@@ -313,7 +313,7 @@ class fdRPCService
} elseif (!$tabobject->by_object[$tab]->acl_is_removeable()) {
throw new WebServiceError('You don\'t have sufficient rights to disable tab "'.$tab.'"', 403);
} else {
list($disabled, $buttonHtmlText, $htmlText) = $tabobject->by_object[$tab]->getDisplayHeaderInfos();
list($disabled, , $htmlText) = $tabobject->by_object[$tab]->getDisplayHeaderInfos();
if ($disabled) {
throw new WebServiceError(htmlunescape($htmlText));
}
......@@ -472,7 +472,7 @@ class fdRPCService
$tabobject->by_object[$tab]->isActivatable() &&
!$tabobject->by_object[$tab]->isActive()
) {
list($disabled, $buttonHtmlText, $htmlText) = $tabobject->by_object[$tab]->getDisplayHeaderInfos();
list($disabled, , $htmlText) = $tabobject->by_object[$tab]->getDisplayHeaderInfos();
if ($disabled) {
throw new WebServiceError(htmlunescape($htmlText));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment