Change the community value as well

This commit is contained in:
Michael 2018-05-11 08:04:01 +00:00
parent 78271e88f5
commit 8d8f2a1845

View file

@ -395,6 +395,12 @@ class Probe
'network' => $data['network'],
'server_url' => $data['baseurl']];
// This doesn't cover the case when a community isn't a community anymore
if (!empty($data['community']) && $data['community']) {
$fields['community'] = $data['community'];
$fields['contact-type'] = ACCOUNT_TYPE_COMMUNITY;
}
$fieldnames = [];
foreach ($fields as $key => $val) {