From d6a6ce1ffc6fda33165ec4aa54f27878945bcabd Mon Sep 17 00:00:00 2001 From: biglyderv Date: Fri, 6 Dec 2024 10:19:57 -0500 Subject: [PATCH] logout fix --- docs/index.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/index.php b/docs/index.php index a8aab3d..3e01db9 100755 --- a/docs/index.php +++ b/docs/index.php @@ -19,8 +19,7 @@ global $ref; global $username; global $db; - if (!$username) getOut('root','root'); - if (!array_key_exists('post',$_POST)) return; + if (!$username || !array_key_exists('post',$_POST)) return; $postie = $_POST['post']; $postType = (array_key_exists('type',$_POST)) ? $_POST['type'] : 'root';