From: rabuzarus <>
Date: Tue, 29 Nov 2016 02:08:46 +0000 (+0100)
Subject: dfrn_request: added $blocked and $pending as variable to make code more understandable
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0d223aa6f1b5d6eaacd76a8c27c47506222e3fa1;p=friendica.git

dfrn_request: added $blocked and $pending as variable to make code more understandable
---

diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php
index 15a4dfdb79..cc9b8f8706 100644
--- a/mod/dfrn_request.php
+++ b/mod/dfrn_request.php
@@ -75,6 +75,8 @@ function dfrn_request_post(&$a) {
 			$confirm_key = ((x($_POST,'confirm_key')) ? $_POST['confirm_key'] : "");
 			$hidden = ((x($_POST,'hidden-contact')) ? intval($_POST['hidden-contact']) : 0);
 			$contact_record = null;
+			$blocked = 1;
+			$pending = 1;
 
 			if(x($dfrn_url)) {
 
@@ -148,7 +150,7 @@ function dfrn_request_post(&$a) {
 					 */
 
 					$r = q("INSERT INTO `contact` ( `uid`, `created`,`url`, `nurl`, `addr`, `name`, `nick`, `photo`, `site-pubkey`,
-						`request`, `confirm`, `notify`, `poll`, `poco`, `network`, `aes_allow`, `hidden`)
+						`request`, `confirm`, `notify`, `poll`, `poco`, `network`, `aes_allow`, `hidden`, `blocked`, `pending`)
 						VALUES ( %d, '%s', '%s', '%s', '%s', '%s' , '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d)",
 						intval(local_user()),
 						datetime_convert(),
@@ -166,7 +168,9 @@ function dfrn_request_post(&$a) {
 						$parms['dfrn-poco'],
 						dbesc(NETWORK_DFRN),
 						intval($aes_allow),
-						intval($hidden)
+						intval($hidden),
+						intval($blocked),
+						intval($pending)
 					);
 				}