From 1870f942d3761a9e2762761caa91bc44db9d8cd8 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 6 Oct 2017 19:25:04 +0000 Subject: [PATCH] Fix SQL error when changing the SSL paths --- include/network.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/network.php b/include/network.php index 3e01b53e05..11a0fffbe6 100644 --- a/include/network.php +++ b/include/network.php @@ -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'])); } }