From fda7ff902a5ad48064e3b72bcf82aaca95996d33 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 11 Jan 2016 09:47:47 +0100 Subject: [PATCH] monitoring: Fix error when listing comments ... ... if the user has no permission to delete comments. --- .../monitoring/application/views/scripts/list/comments.phtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/monitoring/application/views/scripts/list/comments.phtml b/modules/monitoring/application/views/scripts/list/comments.phtml index ad104e156..0801a7e4d 100644 --- a/modules/monitoring/application/views/scripts/list/comments.phtml +++ b/modules/monitoring/application/views/scripts/list/comments.phtml @@ -31,7 +31,8 @@ 'partials/comment/comment-detail.phtml', array( '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 )) ?>