Merge pull request #3762 from annando/avoid-sql-error

Fix SQL error when changing the SSL paths
This commit is contained in:
Tobias Diekershoff 2017-10-06 23:30:11 +00:00 committed by GitHub
commit 072bf7d13d

View file

@ -740,7 +740,10 @@ function fix_contact_ssl_policy(&$contact,$new_policy) {
}
if ($ssl_changed) {
dba::update('contact', $contact, array('id' => $contact['id']));
$fields = array('url' => $contact['url'], 'request' => $contact['request'],
'notify' => $contact['notify'], 'poll' => $contact['poll'],
'confirm' => $contact['confirm'], 'poco' => $contact['poco']);
dba::update('contact', $fields, array('id' => $contact['id']));
}
}