From 4f82eb736cdd2bcb7d7c693fc40783d2cafde243 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 19 Sep 2018 12:45:57 -0400 Subject: [PATCH] Trim the contact name for pdf output. If there's nothing there then don't output. --- models/front/events/pdfCreator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/front/events/pdfCreator.php b/models/front/events/pdfCreator.php index de0ef0b..b1fa1c5 100644 --- a/models/front/events/pdfCreator.php +++ b/models/front/events/pdfCreator.php @@ -164,7 +164,7 @@ foreach ( $events as $eventId => $event ) { // check for phone, url or email to output $contactInfo = array(); - if ( $event['contact_name'] ) { + if ( trim( $event['contact_name'] ) ) { $contactInfo[] = $event['contact_name']; } if ( $event['contact_phone'] ) { -- 2.17.1