autoinstall 모듈에서 패키지 목록이 비어있을때 발생하는 count(null) 에러 수정

This commit is contained in:
Waterticket 2022-09-18 14:42:07 +00:00
parent 772d26ee2f
commit cd85f077fc

View file

@ -342,10 +342,10 @@ class autoinstallAdminView extends autoinstall
$buff = FileHandler::getRemoteResource($config->download_server, $body, 3, "POST", "application/xml", array(), array(), array(), $request_config);
$xml_lUpdate = new XeXmlParser();
$xmlDoc = $xml_lUpdate->parse($buff);
$res = array();
if($xmlDoc && $xmlDoc->response->packagelist->item)
{
$item_list = $this->rearranges($xmlDoc->response->packagelist->item, $package_list);
$res = array();
foreach($package_list as $package_srl => $package)
{
if($item_list[$package_srl])