Prevent possible brick when the upgrade to 5.5 fails between unpacking of files and...
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 18 Mar 2022 13:59:50 +0000 (14:59 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 18 Mar 2022 13:59:50 +0000 (14:59 +0100)
wcfsetup/install/files/acp/templates/packageList.tpl

index 2fbce10d8d7e645411cf510b86cbfbad0bce5317..79fe4a7db38290bd64a2b6a0f0d6c70275c1e1a3 100644 (file)
@@ -14,7 +14,7 @@
                
                {if $__wcf->session->getPermission('admin.configuration.package.canUninstallPackage')}
                        new WCF.ACP.Package.Uninstallation($('.jsPackageRow .jsUninstallButton'), {if PACKAGE_ID > 1}'{link controller='PackageList' forceWCF=true encode=false}packageID={literal}{packageID}{/literal}{/link}'{else}null{/if});
-                       {if $packageID}
+                       {if $packageID|isset && $packageID}
                                new WCF.PeriodicalExecuter(function(pe) {
                                        pe.stop();
                                        $('.jsUninstallButton[data-object-id={@$packageID}]').trigger('click');