Skip to content

Commit

Permalink
Merge pull request #36 from afady/issue/30
Browse files Browse the repository at this point in the history
fixes issue #30
  • Loading branch information
ddymko authored Sep 17, 2019
2 parents 958f776 + 886b5b3 commit dbb2203
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servers/vultr/class/vultr.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,11 @@ public function verifyAdminServiceSave()
}
}
}
if ($this->params['configoptions']['application'] != '0' && $this->params['configoptions']['os_type'] != '186')
if ($this->params['configoptions']['application'] != '0' && $this->params['configoptions']['application'] != null && $this->params['configoptions']['os_type'] != '186')
{
VultrHelper::changeOSTypeToApp($this->params['serviceid']);
}
if ($this->params['configoptions']['application'] == '0' && $this->params['configoptions']['os_type'] == '186')
if (($this->params['configoptions']['application'] == '0' || $this->params['configoptions']['application'] == null) && $this->params['configoptions']['os_type'] == '186')
{
VultrHelper::changeOSTypeToNoApp($this->params['serviceid']);
}
Expand Down

0 comments on commit dbb2203

Please sign in to comment.