Skip to content

Commit

Permalink
Merge pull request #48 from Chathula/patch-1
Browse files Browse the repository at this point in the history
Fixed app breaking issue
  • Loading branch information
berkayk authored Sep 19, 2017
2 parents 7fc126d + e7e8f0e commit d682a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OneSignalClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function sendNotificationCustom($parameters = []){
$this->requiresAuth();
$this->usesJSON();
// By Sucipto
if ($parameters['api_key']) {
if (isset($parameters['api_key'])) {
$this->headers['headers']['Authorization'] = 'Basic '.$parameters['api_key'];
}
// Make sure to use app_id
Expand Down

0 comments on commit d682a5b

Please sign in to comment.