]> git.sur5r.net Git - contagged/blobdiff - tags.php
tell where the error happened
[contagged] / tags.php
index 9310f29f77e164bbeb5f283b17f5b96bcf27ce40..999bffbdd838918f3bd4b32340331f256967224d 100644 (file)
--- a/tags.php
+++ b/tags.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();
   }