aboutsummaryrefslogtreecommitdiffstats
path: root/mod/redir.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-09 16:48:33 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-09 16:48:33 -0700
commit62fdf346ff38fa44903de7556a66904f12a5e010 (patch)
tree1bc18813bf17b7a585a494e481688fa42bde960d /mod/redir.php
parente8c39ff49fdb12461b375db8ab6591ced646f613 (diff)
downloadvolse-hubzilla-62fdf346ff38fa44903de7556a66904f12a5e010.tar.gz
volse-hubzilla-62fdf346ff38fa44903de7556a66904f12a5e010.tar.bz2
volse-hubzilla-62fdf346ff38fa44903de7556a66904f12a5e010.zip
cleanup
Diffstat (limited to 'mod/redir.php')
-rw-r--r--mod/redir.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/redir.php b/mod/redir.php
index 88b291146..688e516ab 100644
--- a/mod/redir.php
+++ b/mod/redir.php
@@ -10,7 +10,9 @@ function redir_init(&$a) {
if(! count($r))
goaway($a->get_baseurl());
- $dfrn_id = (($r[0]['duplex']) ? $r[0]['dfrn-id'] : $r[0]['issued-id']);
+ $dfrn_id = $r[0]['issued-id'];
+ if((! $dfrn_id) && ($r[0]['duplex']))
+ $dfrn_id = $r[0]['dfrn-id'];
q("INSERT INTO `profile_check` ( `uid`, `dfrn_id`, `expire`)
VALUES( %d, '%s', %d )",
@@ -20,5 +22,4 @@ function redir_init(&$a) {
goaway ($r[0]['poll'] . '?dfrn_id=' . $dfrn_id . '&type=profile');
-
} \ No newline at end of file