Skip to content

Commit

Permalink
patch for null twilioclient reference #241
Browse files Browse the repository at this point in the history
  • Loading branch information
dgershman committed Mar 9, 2019
1 parent 8ce4fac commit 5e311b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion endpoints/meeting-search.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
function sendSms($message)
{
if (isset($_REQUEST['From']) && isset($_REQUEST['To'])) {
$twilioClient->messages->create($_REQUEST['From'], array("from" => $_REQUEST['To'], "body" => $message));
$GLOBALS['twilioClient']->messages->create($_REQUEST['From'], array("from" => $_REQUEST['To'], "body" => $message));
}
}
?>
Expand Down

0 comments on commit 5e311b2

Please sign in to comment.