pull/11/head
Squidly271 2022-12-21 15:07:29 -05:00
parent b129394193
commit 71b539e9e1
3 changed files with 2 additions and 2 deletions

View File

@ -22,4 +22,4 @@ da3b4f9b73c5c3bf65be6c42d68b51f9 ./scripts/showStatistics.php
34554a56611dfe625889c82afd5138de ./scripts/updatePluginSupport.php
25bdaed6f62ac73f9ef7c3ce0c125ef7 ./skins/Narrow/css.php
7eb021a105e2f7a15675ec8a14e6f05e ./skins/Narrow/skin.html
691b51c4e60de7572c7a198b4e73569e ./skins/Narrow/skin.php
731585813068e9a05190f23bc9e60c04 ./skins/Narrow/skin.php

View File

@ -161,7 +161,7 @@ function my_display_apps($file,$pageNumber=1,$selectedApps=false,$startup=false)
}
if ( $caSettings['defaultReinstall'] == "true" && ! $template['Blacklist']) {
if ( $template['ID'] !== false ) { # don't allow 2nd if there's not a "default" within CA
if ( $template['BranchID'] )
if ( $template['BranchID'] ?? false )
$actionsContext[] = ["icon"=>"ca_fa-install","text"=>tr("Install second instance"),"action"=>"displayTags('{$template['ID']}',true,'".str_replace(" "," ",htmlspecialchars($installComment))."','".portsUsed($template)."');"];
else
$actionsContext[] = ["icon"=>"ca_fa-install","text"=>tr("Install second instance"),"action"=>"popupInstallXML('".addslashes($template['Path'])."','second','".str_replace(" "," ",htmlspecialchars($installComment))."','".portsUsed($template)."');"];