App->contact is now removed

This commit is contained in:
Michael 2021-07-24 11:49:11 +00:00
commit 30aad250df
16 changed files with 65 additions and 54 deletions

View file

@ -58,7 +58,7 @@ function redir_init(App $a) {
$contact_url = $contact['url'];
if (!empty($a->contact['id']) && $a->contact['id'] == $cid) {
if (!empty($a->contact_id) && $a->contact_id == $cid) {
// Local user is already authenticated.
redir_check_url($contact_url, $url);
$a->redirect($url ?: $contact_url);
@ -73,7 +73,7 @@ function redir_init(App $a) {
$cid = $contact['id'];
}
if (!empty($a->contact['id']) && $a->contact['id'] == $cid) {
if (!empty($a->contact_id) && $a->contact_id == $cid) {
// Local user is already authenticated.
redir_check_url($contact_url, $url);
$target_url = $url ?: $contact_url;