From 520a0685004bec274cdfc422ad2c92a7ff8254e3 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 4 Jan 2018 11:53:57 -0500 Subject: [PATCH] Add back missing brace - Revert unneeded change to SQL query formatting --- mod/dfrn_request.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php index 0bbc794bd5..ca43998cbc 100644 --- a/mod/dfrn_request.php +++ b/mod/dfrn_request.php @@ -87,12 +87,16 @@ function dfrn_request_post(App $a) // We don't need to be here. It has already happened. notice(t("This introduction has already been accepted.") . EOL); return; - } else + } else { $contact_record = $r[0]; + } } if (is_array($contact_record)) { - $r = q("UPDATE `contact` SET `ret-aes` = %d, hidden = %d WHERE `id` = %d", intval($aes_allow), intval($hidden), intval($contact_record['id']) + $r = q("UPDATE `contact` SET `ret-aes` = %d, hidden = %d WHERE `id` = %d", + intval($aes_allow), + intval($hidden), + intval($contact_record['id']) ); } else { // Scrape the other site's profile page to pick up the dfrn links, key, fn, and photo