Skip to content

Commit

Permalink
Added Sanity checks
Browse files Browse the repository at this point in the history
  • Loading branch information
drmessano authored Jul 1, 2016
1 parent aff281d commit 35d5d2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sources/source-Send_to_Yo.module
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ class Send_to_Yo extends superfecta_base {

function post_processing($cache_found, $winning_source, $first_caller_id, $run_param, $thenumber) {
$this->DebugPrint("Sending Yo");
if(($run_param['API_Token'] == null) || ($run_param['User'] == null)){
$this->DebugPrint("Failed: Missing one or more required values");
return;
}
$curl = curl_init();
$user = strtolower($run_param['User']);
if ($user == 'all') {
Expand Down

0 comments on commit 35d5d2c

Please sign in to comment.