Add back missing brace
- Revert unneeded change to SQL query formatting
This commit is contained in:
parent
0aea615995
commit
520a068500
1 changed files with 6 additions and 2 deletions
|
@ -87,12 +87,16 @@ function dfrn_request_post(App $a)
|
||||||
// We don't need to be here. It has already happened.
|
// We don't need to be here. It has already happened.
|
||||||
notice(t("This introduction has already been accepted.") . EOL);
|
notice(t("This introduction has already been accepted.") . EOL);
|
||||||
return;
|
return;
|
||||||
} else
|
} else {
|
||||||
$contact_record = $r[0];
|
$contact_record = $r[0];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_array($contact_record)) {
|
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 {
|
} else {
|
||||||
// Scrape the other site's profile page to pick up the dfrn links, key, fn, and photo
|
// Scrape the other site's profile page to pick up the dfrn links, key, fn, and photo
|
||||||
|
|
Loading…
Reference in a new issue