From e1284fbf723d6b035a9421e6bad08fb3ac5736fb Mon Sep 17 00:00:00 2001 From: chansizzle <14916599+chansizzle@users.noreply.github.com> Date: Fri, 20 Sep 2019 12:41:47 -0600 Subject: [PATCH] Update messages_contacts.php (#4637) --- app/messages/messages_contacts.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/messages/messages_contacts.php b/app/messages/messages_contacts.php index 9e4e6cfea9..23a1c7b67a 100644 --- a/app/messages/messages_contacts.php +++ b/app/messages/messages_contacts.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2016-2018 + Portions created by the Initial Developer are Copyright (C) 2016-2019 the Initial Developer. All Rights Reserved. Contributor(s): @@ -131,7 +131,10 @@ } } unset($sql, $parameters, $rows, $row); - $numbers = array_diff($numbers, $destinations); + + if (!is_null(array_diff($numbers, $destinations))) { + $numbers = array_diff($numbers, $destinations); + } //get contact (primary attachment) images and cache them if (is_array($numbers) && @sizeof($numbers) != 0) { @@ -219,4 +222,4 @@ echo "\n"; } -?> \ No newline at end of file +?>