includes/template.php
changeset 579 6e23d8a99616
parent 578 02bc119a6dd3
child 581 5e8fd89c02ea
equal deleted inserted replaced
578:02bc119a6dd3 579:6e23d8a99616
   600           $na++;
   600           $na++;
   601         }
   601         }
   602       }
   602       }
   603       
   603       
   604       $db->free_result();
   604       $db->free_result();
   605       $n = ( $perms->get_permissions('mod_comments') ) ? (string)$nc : (string)$na;
   605       $n = ( $session->check_acl_scope('mod_comments', $local_namespace) && $perms->get_permissions('mod_comments') ) ? (string)$nc : (string)$na;
   606       if ( $perms->get_permissions('mod_comments') && $nu > 0 )
   606       if ( $session->check_acl_scope('mod_comments', $local_namespace) && $perms->get_permissions('mod_comments') && $nu > 0 )
   607       {
   607       {
   608         $subst = array(
   608         $subst = array(
   609             'num_comments' => $nc,
   609             'num_comments' => $nc,
   610             'num_unapp' => $nu
   610             'num_unapp' => $nu
   611           );
   611           );