Merge pull request #1994 from Waterticket/autoinstall_fix

autoinstall 모듈에서 count(null) 에러 수정
This commit is contained in:
Kijin Sung 2022-10-11 22:57:16 +09:00 committed by GitHub
commit 1fac0a17fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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])