diff options
author | friendica <info@friendica.com> | 2012-06-20 21:09:52 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-06-20 21:09:52 -0700 |
commit | 0a302e100d6b7f4be56af46a352f5bb4778fb96e (patch) | |
tree | 72e217328e7d26fada461276c0a085614164d886 | |
parent | bf0ab10cafbcd7a238042cbd81c1bf521c9d12ea (diff) | |
download | volse-hubzilla-0a302e100d6b7f4be56af46a352f5bb4778fb96e.tar.gz volse-hubzilla-0a302e100d6b7f4be56af46a352f5bb4778fb96e.tar.bz2 volse-hubzilla-0a302e100d6b7f4be56af46a352f5bb4778fb96e.zip |
try and eliminate the openssl warnings for forums trying to talk back to fans
-rw-r--r-- | mod/dfrn_poll.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php index 436727a78..f3c145410 100644 --- a/mod/dfrn_poll.php +++ b/mod/dfrn_poll.php @@ -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']); } |