Merge pull request #3762 from annando/avoid-sql-error
Fix SQL error when changing the SSL paths
This commit is contained in:
commit
072bf7d13d
|
@ -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']));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user