From 856db39f9a88ac911ddc0a02bd1239566e15d2c1 Mon Sep 17 00:00:00 2001 From: Netkas Date: Sun, 18 Dec 2022 17:01:29 -0500 Subject: [PATCH] Updated method in \ncc\Objects\Project > Project > fromArray() to invoke toArray() on UpdateSource if it's not null. --- src/ncc/Objects/ProjectConfiguration/Project.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ncc/Objects/ProjectConfiguration/Project.php b/src/ncc/Objects/ProjectConfiguration/Project.php index 83f7e2e..cda1034 100644 --- a/src/ncc/Objects/ProjectConfiguration/Project.php +++ b/src/ncc/Objects/ProjectConfiguration/Project.php @@ -70,7 +70,9 @@ $ReturnResults[($bytecode ? Functions::cbc('compiler') : 'compiler')] = $this->Compiler->toArray($bytecode); $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; }