Fixed issue #1.

This commit is contained in:
Rooty 2020-12-07 16:28:54 +01:00
parent a0040870a9
commit f349e9fe26

View File

@ -92,7 +92,7 @@ Class InstallManager extends CoordinationObj
$ftp=$this->getData("ftp"); $ftp=$this->getData("ftp");
$login=$this->getData("login"); $login=$this->getData("login");
$passwd=$this->getData("passwd"); $passwd=$this->getData("passwd");
$connection =new ftp($ftp,$login,$passwd); $connection =new ftp($ftp, $login, $passwd);
$backup =new backup(); $backup =new backup();
$cache_time =null; $cache_time =null;
@ -149,13 +149,15 @@ Class InstallManager extends CoordinationObj
} }
// on verifie que les éléments sont uploadés ou non... // on verifie que les éléments sont uploadés ou non...
$tabDownload=$backup->getContentDir($GLOBALS["CONF_DATA_PATH"]."data/upload/install/packagesrc/"); if( $tabDownload=$backup->getContentDir($GLOBALS["CONF_DATA_PATH"]."data/upload/install/packagesrc/") )
$tabDownLoadCp=array();
for($i=0;$i<count($tabDownload);$i++)
{ {
if (strpos($tabDownload[$i][2], ".tar")!==false) $tabDownLoadCp=array();
$tabDownLoadCp[]=substr($tabDownload[$i][2], 0, (strlen($tabDownload[$i][2])-4)); for($i=0;$i<count($tabDownload);$i++)
} {
if (strpos($tabDownload[$i][2], ".tar")!==false)
$tabDownLoadCp[]=substr($tabDownload[$i][2], 0, (strlen($tabDownload[$i][2])-4));
}
}
//Teste de l'existence des packages et telechargement si on les possede pas deja //Teste de l'existence des packages et telechargement si on les possede pas deja
$nb=count($tabPackage); $nb=count($tabPackage);