Skip to content

Commit

Permalink
slack_webhook optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sleiman committed Jan 27, 2019
1 parent 0f47a2a commit d084f21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Airtable.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ public function __construct($config)
if (is_array($config)) {
$this->setKey($config['api_key']);
$this->setBase($config['base']);
$this->setSlack($config['slack_webhook']);
if(isset($config['slack_webhook'])){
$this->setSlack($config['slack_webhook']);
}
} else {
echo 'Error: __construct() - Configuration data is missing.';
}
Expand Down

0 comments on commit d084f21

Please sign in to comment.