monitoring: Fix error when listing comments ...

... if the user has no permission to delete comments.
This commit is contained in:
Eric Lippmann 2016-01-11 09:47:47 +01:00
parent b1049f2aed
commit fda7ff902a

View File

@ -31,7 +31,8 @@
'partials/comment/comment-detail.phtml', 'partials/comment/comment-detail.phtml',
array( array(
'comment' => $comment, 'comment' => $comment,
'delCommentForm' => $delCommentForm // Form is unset if the current user lacks the respective permission 'delCommentForm' => isset($delCommentForm) ? $delCommentForm : null
// Form is unset if the current user lacks the respective permission
)) ?> )) ?>
</td> </td>
</tr> </tr>