From eb98b21dfef8f86184801120725df266c40ea4aa Mon Sep 17 00:00:00 2001 From: Moriel Schottlender Date: Tue, 6 Sep 2016 14:44:51 -0700 Subject: [PATCH] Add 'canRender' check to EchoMentionStatusPresentationModel Change-Id: Ica338ff5810b62849d30e5b27709558f1b797c43 --- includes/formatters/MentionStatusPresentationModel.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/formatters/MentionStatusPresentationModel.php b/includes/formatters/MentionStatusPresentationModel.php index 2168fbcdf..d6366e05f 100644 --- a/includes/formatters/MentionStatusPresentationModel.php +++ b/includes/formatters/MentionStatusPresentationModel.php @@ -20,6 +20,10 @@ class EchoMentionStatusPresentationModel extends EchoEventPresentationModel { return 'mention-failure'; } + public function canRender() { + return (bool)$this->event->getTitle(); + } + public function getHeaderMessage() { if ( $this->isTooManyMentionsFailure() ) { $msg = $this->getMessageWithAgent( 'notification-header-mention-failure-too-many' );