equal
deleted
inserted
replaced
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; |