From: Michael Date: Fri, 6 Oct 2017 19:25:04 +0000 (+0000) Subject: Fix SQL error when changing the SSL paths X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1870f942d3761a9e2762761caa91bc44db9d8cd8;p=friendica.git Fix SQL error when changing the SSL paths --- 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'])); } }