]> git.sur5r.net Git - contagged/blobdiff - tags.php
fix missing space in company address
[contagged] / tags.php
index b81e50e2e6c08f1ea58e1d0959098337a9bb5ff1..ddde120596086c446714a7a6d46968748c289b45 100644 (file)
--- a/tags.php
+++ b/tags.php
@@ -2,11 +2,10 @@
   require_once('inc/init.php');
   ldap_login();
 
-  if ($conf['userlogreq'] && $user == ''){
+  if ($conf['userlogreq'] && !isset($_SESSION['ldapab']['username'])){
     header('Location: login.php');
     exit();
   }
-
   //prepare templates
   tpl_std();
   $smarty->assign('tagcloud',tag_cloud());
     global $conf;
     global $LDAP_CON;
     global $FIELDS;
-    if(!$conf['extended']) return;
+    if(!$FIELDS['_marker']) return;
 
     $result = ldap_queryabooks('(objectClass=inetOrgPerson)',$FIELDS['_marker']);
-
     $max = 0;
     $min = 999999999;
     $tags = array();
@@ -37,7 +35,7 @@
       }
     }
     ksort($tags);
-    tag_cloud_weight(&$tags,$min,$max,6);
+    tag_cloud_weight($tags,$min,$max,6);
 
     $out = '';
     foreach($tags as $tag => $cnt){