]> git.sur5r.net Git - contagged/blobdiff - orgs.php
fixed problem with login check
[contagged] / orgs.php
index f6ce2889f2d090b29e43d84e5851761f8331aa40..10aa301f65ee6f8f1cb2f41217c0e091ac834de5 100644 (file)
--- a/orgs.php
+++ b/orgs.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();
   }