mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix warnings in PHP 8.0
This commit is contained in:
parent
9732290515
commit
49ea6700b3
2 changed files with 6 additions and 1 deletions
|
|
@ -309,6 +309,11 @@ class VariableBase
|
|||
{
|
||||
list($is_expression, $value) = $this->getDefaultValue();
|
||||
}
|
||||
else
|
||||
{
|
||||
$is_expression = null;
|
||||
$value = null;
|
||||
}
|
||||
|
||||
return [$is_expression, $value];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue