Skip to content

Commit

Permalink
Update FacebookVideoDriver.php (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
msonowal authored and mpociot committed Nov 23, 2017
1 parent 2001206 commit b2f5ed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FacebookVideoDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function matchesRequest()
$messages = Collection::make($this->event->get('messaging'))->filter(function ($msg) {
if (isset($msg['message']) && isset($msg['message']['attachments']) && isset($msg['message']['attachments'])) {
return Collection::make($msg['message']['attachments'])->filter(function ($attachment) {
return $attachment['type'] === 'video';
return (isset($attachment['type'])) && $attachment['type'] === 'video';
})->isEmpty() === false;
}

Expand Down

0 comments on commit b2f5ed2

Please sign in to comment.