This commit is contained in:
2019-05-30 03:30:08 -05:00
parent 415ae401fd
commit d2520ade06

View File

@@ -53,8 +53,8 @@ class StructureHelper {
//Record the structure information into the database
//Find if the structure exists
$found = Structure::where(['structure_id' => $structure->structure_id])->get();
if($found == null) {
//$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);
} else {