X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tags.php;h=ddde120596086c446714a7a6d46968748c289b45;hb=fe4b8192a9eb0b485673ee3854d6fc14cbe1dda1;hp=9310f29f77e164bbeb5f283b17f5b96bcf27ce40;hpb=03bedef53fe38250f38315c10e3bf04ad737f3f1;p=contagged diff --git a/tags.php b/tags.php index 9310f29..ddde120 100644 --- 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(); } @@ -35,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){