020520 Sudden logout bugfix

This commit is contained in:
Daisuke 2020-05-02 13:04:34 -05:00
parent 93705ba3c8
commit 1b5a43e3d9
1 changed files with 1 additions and 1 deletions

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');
}
}