X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdfrn_confirm.php;h=180e8ff31c7a587ab5eb1770a7b8de3d2f45cf60;hb=df7702709b07560af1d469f0835586af317f39b0;hp=4dacb5d81707c9528ae6d9729be42a80dbb2b956;hpb=d8bd4fbb3e38bf0ff9c7b61dba58e20c0d097d75;p=friendica.git diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php index 4dacb5d817..180e8ff31c 100644 --- a/mod/dfrn_confirm.php +++ b/mod/dfrn_confirm.php @@ -566,7 +566,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) { dbesc($newurl), intval($local_uid) ); - if(! count($r)) { + if(! count($ret)) { // this is either a bogus confirmation (?) or we deleted the original introduction. $message = t('Contact record was not found for you on our site.'); xml_status(3,$message); @@ -581,6 +581,11 @@ function dfrn_confirm_post(&$a,$handsfree = null) { $foreign_pubkey = $ret[0]['site-pubkey']; $dfrn_record = $ret[0]['id']; + if(! $foreign_pubkey) { + $message = sprintf( t('Site public key not available in contact record for URL %s.'), $newurl); + xml_status(3,$message); + } + $decrypted_dfrn_id = ""; openssl_public_decrypt($dfrn_id,$decrypted_dfrn_id,$foreign_pubkey);