includes/pageutils.php
changeset 825 9d5c04c1414f
parent 801 eb8b23f11744
child 832 7152ca0a0ce9
equal deleted inserted replaced
817:880c4b7eb658 825:9d5c04c1414f
   692     while ( $row = $db->fetchrow($lq) )
   692     while ( $row = $db->fetchrow($lq) )
   693     {
   693     {
   694       $i++;
   694       $i++;
   695       $strings = Array();
   695       $strings = Array();
   696       $bool = Array();
   696       $bool = Array();
   697       if ( $session->get_permissions('mod_comments') || $row['approved'] )
   697       if ( $session->get_permissions('mod_comments') || $row['approved'] == COMMENT_APPROVED )
   698       {
   698       {
   699         $list .= $i . ' : { \'comment\' : unescape(\''.rawurlencode($row['comment_data']).'\'), \'name\' : unescape(\''.rawurlencode($row['name']).'\'), \'subject\' : unescape(\''.rawurlencode($row['subject']).'\'), }, ';
   699         $list .= $i . ' : { \'comment\' : unescape(\''.rawurlencode($row['comment_data']).'\'), \'name\' : unescape(\''.rawurlencode($row['name']).'\'), \'subject\' : unescape(\''.rawurlencode($row['subject']).'\'), }, ';
   700         
   700         
   701         // Comment ID (used in the Javascript apps)
   701         // Comment ID (used in the Javascript apps)
   702         $strings['ID'] = (string)$i;
   702         $strings['ID'] = (string)$i;