diff --git a/app/Library/Structures/StructureHelper.php b/app/Library/Structures/StructureHelper.php index 361e1459e..8dd260547 100644 --- a/app/Library/Structures/StructureHelper.php +++ b/app/Library/Structures/StructureHelper.php @@ -53,7 +53,6 @@ class StructureHelper { //Record the structure information into the database //Find if the structure exists - //$found = Structure::where(['structure_id' => $structure->structure_id])->first(); if(Structure::where(['structure_id' => $structure->structure_id])->count() == 0) { if(isset($info->solar_system_id)) { $solarName = $this->GetSolarSystemName($info->solar_system_id); @@ -78,6 +77,11 @@ class StructureHelper { } else { $st->services = false; } + if(isset($structure->state)) { + $st->state = $structure->state; + } else { + $st->state = 'None'; + } if(isset($structure->state_timer_start)) { $st->state_timer_start = $this->DecodeDate($structure->state_timer_start); }