aboutsummaryrefslogtreecommitdiffstats
path: root/include/auth.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-25 16:18:35 -0800
committerfriendica <info@friendica.com>2013-01-25 16:18:35 -0800
commitc96eb6dc971dc74724a2c20fccf02d34dd08d156 (patch)
treed9d578b81b1abd7a882bfc710e85a2a389a5e046 /include/auth.php
parent318d75a86a3cc4f5a4dcf1278c9a8236c24ac12a (diff)
downloadvolse-hubzilla-c96eb6dc971dc74724a2c20fccf02d34dd08d156.tar.gz
volse-hubzilla-c96eb6dc971dc74724a2c20fccf02d34dd08d156.tar.bz2
volse-hubzilla-c96eb6dc971dc74724a2c20fccf02d34dd08d156.zip
make contact_remove sort of work so I can actually get rid of Oliver's and Michael J's dead contacts and not poll them every ten minutes forever
Diffstat (limited to 'include/auth.php')
-rw-r--r--include/auth.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/auth.php b/include/auth.php
index 9cdbd80d5..68dc9308f 100644
--- a/include/auth.php
+++ b/include/auth.php
@@ -63,7 +63,7 @@ if((isset($_SESSION)) && (x($_SESSION,'authenticated')) && ((! (x($_POST,'auth-p
info( t('Logged out.') . EOL);
goaway(z_root());
}
-dbg(1);
+
if(x($_SESSION,'visitor_id') && (! x($_SESSION,'uid'))) {
$r = q("select * from hubloc left join xchan on xchan_hash = hubloc_hash where hubloc_hash = '%s' limit 1",
dbesc($_SESSION['visitor_id'])
@@ -77,7 +77,7 @@ dbg(1);
}
$a->set_groups(init_groups_visitor($_SESSION['visitor_id']));
}
-dbg(0);
+
if(x($_SESSION,'uid') || x($_SESSION,'account_id')) {
// already logged in user returning