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