Updated method in \ncc\Objects\Project > Project > fromArray() to invoke toArray() on UpdateSource if it's not null.

This commit is contained in:
Netkas 2022-12-18 17:01:29 -05:00
parent a25f1e0c2a
commit 856db39f9a

View file

@ -70,7 +70,9 @@
$ReturnResults[($bytecode ? Functions::cbc('compiler') : 'compiler')] = $this->Compiler->toArray($bytecode); $ReturnResults[($bytecode ? Functions::cbc('compiler') : 'compiler')] = $this->Compiler->toArray($bytecode);
$ReturnResults[($bytecode ? Functions::cbc('options') : 'options')] = $this->Options; $ReturnResults[($bytecode ? Functions::cbc('options') : 'options')] = $this->Options;
$ReturnResults[($bytecode ? Functions::cbc('update_source') : 'update_source')] = $this->UpdateSource->toArray($bytecode);
if($this->UpdateSource !== null)
$ReturnResults[($bytecode ? Functions::cbc('update_source') : 'update_source')] = $this->UpdateSource->toArray($bytecode);
return $ReturnResults; return $ReturnResults;
} }