diff --git a/modules/autoinstall/autoinstall.model.php b/modules/autoinstall/autoinstall.model.php
index 4630a7f69..38dabeaf0 100644
--- a/modules/autoinstall/autoinstall.model.php
+++ b/modules/autoinstall/autoinstall.model.php
@@ -205,6 +205,9 @@
function getRemoveUrlByPackageSrl($packageSrl)
{
+ $ftp_info = Context::getFTPInfo();
+ if (!$ftp_info->ftp_root_path) return;
+
if (!$packageSrl) return;
return getNotEncodedUrl('', 'module', 'admin', 'act', 'dispAutoinstallAdminUninstall', 'package_srl', $packageSrl);
@@ -214,6 +217,9 @@
{
if (!$path) return;
+ $ftp_info = Context::getFTPInfo();
+ if (!$ftp_info->ftp_root_path) return;
+
$packageSrl = $this->getPackageSrlByPath($path);
if (!$packageSrl) return;
diff --git a/modules/autoinstall/lang/lang.xml b/modules/autoinstall/lang/lang.xml
index 6f58a808e..3265a1c86 100644
--- a/modules/autoinstall/lang/lang.xml
+++ b/modules/autoinstall/lang/lang.xml
@@ -254,26 +254,26 @@