Updated method in \ncc\Objects\Project > Project > fromArray() to invoke toArray() on UpdateSource if it's not null.
This commit is contained in:
parent
a25f1e0c2a
commit
856db39f9a
1 changed files with 3 additions and 1 deletions
|
@ -70,6 +70,8 @@
|
||||||
|
|
||||||
$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;
|
||||||
|
|
||||||
|
if($this->UpdateSource !== null)
|
||||||
$ReturnResults[($bytecode ? Functions::cbc('update_source') : 'update_source')] = $this->UpdateSource->toArray($bytecode);
|
$ReturnResults[($bytecode ? Functions::cbc('update_source') : 'update_source')] = $this->UpdateSource->toArray($bytecode);
|
||||||
|
|
||||||
return $ReturnResults;
|
return $ReturnResults;
|
||||||
|
|
Loading…
Add table
Reference in a new issue