From 1b5a43e3d9179029090d3cd0bde0d6afcc2a04fc Mon Sep 17 00:00:00 2001 From: Daisuke Date: Sat, 2 May 2020 13:04:34 -0500 Subject: [PATCH] 020520 Sudden logout bugfix --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 0997dac..722deb6 100644 --- a/index.php +++ b/index.php @@ -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'); } }