]> git.mxchange.org Git - friendica.git/commitdiff
Fix SQL error when changing the SSL paths
authorMichael <heluecht@pirati.ca>
Fri, 6 Oct 2017 19:25:04 +0000 (19:25 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 6 Oct 2017 19:25:04 +0000 (19:25 +0000)
include/network.php

index 3e01b53e053458a7cad1fa2e79e88c925ba6be81..11a0fffbe671a827c3e524e10ed0bc7b76def26c 100644 (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']));
        }
 }