Fix warnings in PHP 8.0

This commit is contained in:
Kijin Sung 2020-12-22 22:42:31 +09:00
parent 9732290515
commit 49ea6700b3
2 changed files with 6 additions and 1 deletions

View file

@ -309,6 +309,11 @@ class VariableBase
{
list($is_expression, $value) = $this->getDefaultValue();
}
else
{
$is_expression = null;
$value = null;
}
return [$is_expression, $value];
}

View file

@ -2463,7 +2463,7 @@ class documentController extends document
$list[$category_srl] = $category_list[$i];
}
// Create the xml file without node data if no data is obtained
if(!$list)
if(!isset($list) || !$list)
{
$xml_buff = "<root />";
FileHandler::writeFile($xml_file, $xml_buff);