]> git.sur5r.net Git - contagged/commitdiff
Fixed a problem with userlogreq and the tag cloud
authorMichael Rest <michi@rosstein.de>
Tue, 20 Oct 2009 08:53:23 +0000 (10:53 +0200)
committerAndreas Gohr <gohr@cosmocode.de>
Tue, 20 Oct 2009 08:53:23 +0000 (10:53 +0200)
tags.php

index 9310f29f77e164bbeb5f283b17f5b96bcf27ce40..999bffbdd838918f3bd4b32340331f256967224d 100644 (file)
--- a/tags.php
+++ b/tags.php
@@ -2,7 +2,7 @@
   require_once('inc/init.php');
   ldap_login();
 
   require_once('inc/init.php');
   ldap_login();
 
-  if ($conf['userlogreq'] && $user == ''){
+  if ($conf['userlogreq'] && !isset($_SESSION['ldapab']['username'])){
     header('Location: login.php');
     exit();
   }
     header('Location: login.php');
     exit();
   }