Comment approve : filtering missing

This commit is contained in:
Fred Tempez 2020-07-16 12:10:20 +02:00
parent dca8fb57ab
commit 4387390dbc
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ class blog extends common {
$buttonApproval = '';
if ( $this->getData(['module', $this->getUrl(0), $this->getUrl(2),'commentApprove']) === true) {
$buttonApproval = template::button('blogcommentApprove' . $commentIds[$i], [
'class' => $comment['approval'] === true ? 'blogCommentApprove' : 'blogCommentApprove buttonRed' ,
'class' => $comment['approval'] === true ? 'blogCommentReject' : 'blogCommentApprove buttonRed' ,
'href' => helper::baseUrl() . $this->getUrl(0) . '/commentApprove/' . $this->getUrl(2) . '/' . $commentIds[$i] . '/' . $_SESSION['csrf'] ,
'value' => $comment['approval'] === true ? 'A' : 'R'
]);