020520 Sudden logout bugfix

This commit is contained in:
Daisuke 2020-05-02 13:04:34 -05:00
parent 93705ba3c8
commit 1b5a43e3d9

View File

@ -57,7 +57,7 @@ call is not an AJAX request */
if(!isset($_GET['ajax'])){
if ($logedin){
$info = api_get("accounts/verify_credentials");
if(!$info['display_name']){
if($info['error']){
header('Location: ./logout');
}
}