]> git.sur5r.net Git - contagged/blobdiff - entry.php
fixed problem with login check
[contagged] / entry.php
index 4405991f2b81ec1e24b1e234ee7f5cac2c27c6d7..9edd1717023604763444909f21697fa163b46aa2 100644 (file)
--- a/entry.php
+++ b/entry.php
@@ -2,7 +2,7 @@
 require_once('inc/init.php');
 ldap_login();
 
-if ($conf['userlogreq'] && $user == ''){
+if ($conf['userlogreq'] && !isset($_SESSION['ldapab']['username'])){
   header('Location: login.php');
   exit();
 }