]> git.mxchange.org Git - friendica.git/commitdiff
Add back missing brace
authorHypolite Petovan <mrpetovan@gmail.com>
Thu, 4 Jan 2018 16:53:57 +0000 (11:53 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Thu, 4 Jan 2018 16:53:57 +0000 (11:53 -0500)
- Revert unneeded change to SQL query formatting

mod/dfrn_request.php

index 0bbc794bd5d1efbd0bb3b0d0b809a75389c22943..ca43998cbce66907ed12ae889c94b24ef70cdbf6 100644 (file)
@@ -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