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