]> git.mxchange.org Git - friendica.git/commitdiff
try and eliminate the openssl warnings for forums trying to talk back to fans
authorfriendica <info@friendica.com>
Thu, 21 Jun 2012 04:09:52 +0000 (21:09 -0700)
committerfriendica <info@friendica.com>
Thu, 21 Jun 2012 04:09:52 +0000 (21:09 -0700)
mod/dfrn_poll.php

index 436727a78fca603bcb1e00c04ddd5b97a92674bf..f3c14541024f39a0d9e4e4e2b20b62bae510039b 100644 (file)
@@ -443,7 +443,7 @@ function dfrn_poll_content(&$a) {
                        $encrypted_id = '';
                        $id_str = $my_id . '.' . mt_rand(1000,9999);
 
-                       if($r[0]['duplex'] && strlen($r[0]['pubkey'])) {
+                       if(($r[0]['duplex'] && strlen($r[0]['pubkey'])) || (! strlen($r[0]['prvkey']))) {
                                openssl_public_encrypt($hash,$challenge,$r[0]['pubkey']);
                                openssl_public_encrypt($id_str,$encrypted_id,$r[0]['pubkey']);
                        }