diff --git a/endpoints/meeting-search.php b/endpoints/meeting-search.php index 46cf83a61..6c8ffd641 100644 --- a/endpoints/meeting-search.php +++ b/endpoints/meeting-search.php @@ -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)); } } ?>