Opps, fixed parser error. indending was confusing here

+ added much more curly braces

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Haeder 2017-03-25 14:56:23 +01:00
parent 73ee285212
commit fccdc63964
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
2 changed files with 127 additions and 91 deletions

View file

@ -1129,10 +1129,9 @@ class dfrn {
if ($dfrn_version >= 2.1) {
if (($contact['duplex'] && strlen($contact['pubkey'])) {
|| ($owner['page-flags'] == PAGE_COMMUNITY && strlen($contact['pubkey']))
|| ($contact['rel'] == CONTACT_IS_SHARING && strlen($contact['pubkey'])))
if (($contact['duplex'] && strlen($contact['pubkey']))
|| ($owner['page-flags'] == PAGE_COMMUNITY && strlen($contact['pubkey']))
|| ($contact['rel'] == CONTACT_IS_SHARING && strlen($contact['pubkey']))) {
openssl_public_encrypt($key,$postvars['key'],$contact['pubkey']);
} else {
openssl_private_encrypt($key,$postvars['key'],$contact['prvkey']);