prevent redirect loop if an account is manually removed while logged in

This commit is contained in:
Friendika 2010-11-15 16:55:11 -08:00
parent 9be5a7c750
commit c2b4791af0

View file

@ -28,6 +28,8 @@ if((isset($_SESSION)) && (x($_SESSION,'authenticated')) && ((! (x($_POST,'auth-p
); );
if(! count($r)) { if(! count($r)) {
unset($_SESSION['authenticated']);
unset($_SESSION['uid']);
goaway($a->get_baseurl()); goaway($a->get_baseurl());
} }