From f0b640058427aff2d9d60899f9005980ab89c0ef Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sun, 31 Oct 2010 16:38:22 -0700 Subject: more lint --- include/auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/auth.php') diff --git a/include/auth.php b/include/auth.php index 4813bb45b..c0a747def 100644 --- a/include/auth.php +++ b/include/auth.php @@ -2,9 +2,9 @@ // login/logout -if((isset($_SESSION)) && (x($_SESSION,'authenticated')) && (! ($_POST['auth-params'] === 'login'))) { +if((isset($_SESSION)) && (x($_SESSION,'authenticated')) && ((! (x($_POST,'auth-params'))) || ($_POST['auth-params'] !== 'login'))) { - if($_POST['auth-params'] === 'logout' || $a->module === 'logout') { + if(((x($_POST,'auth-params')) && ($_POST['auth-params'] === 'logout')) || ($a->module === 'logout')) { // process logout request -- cgit v1.2.3