mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-29 21:48:45 +02:00
Fix after PR review
This commit is contained in:
@@ -102,10 +102,14 @@ JS);
|
||||
|
||||
$aRemovedExtensions = json_decode($this->oWizard->GetParameter('removed_extensions', "[]"), true);
|
||||
$aHiddenRemovedExtensionInputs = "";
|
||||
$i = 0;
|
||||
if (!is_array($aRemovedExtensions)) {
|
||||
IssueLog::Warning('Posted removed_extensions is not an array');
|
||||
$aRemovedExtensions = [];
|
||||
}
|
||||
foreach ($aRemovedExtensions as $sExtCode => $sExtLabel) {
|
||||
$sSafeExtCode = utils::HtmlEntities($sExtCode);
|
||||
$aHiddenRemovedExtensionInputs .= <<<INPUT
|
||||
<input type="hidden" name="aExtensions[$sExtCode][enable]" value="on"/>
|
||||
<input type="hidden" name="aExtensions[$sSafeExtCode][enable]" value="on"/>
|
||||
INPUT;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user