From 9b9fa4d83c62be0947de894df0b7d05fe60518c0 Mon Sep 17 00:00:00 2001 From: TCB13 Date: Tue, 19 Feb 2019 12:43:47 +0000 Subject: [PATCH] Update AppleNotification.php --- src/NotificationHubsRest/Notification/AppleNotification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NotificationHubsRest/Notification/AppleNotification.php b/src/NotificationHubsRest/Notification/AppleNotification.php index 1f02425..b6c5e12 100644 --- a/src/NotificationHubsRest/Notification/AppleNotification.php +++ b/src/NotificationHubsRest/Notification/AppleNotification.php @@ -60,7 +60,7 @@ public function getPayload() } if (is_array($this->alert)) { - if (!empty($alert)) { + if (!empty($this->alert)) { $alert = array_intersect_key($this->alert, array_fill_keys($this->supportedAlertProperties, 0)); $payload += ['alert' => $alert]; }