Skip to content

Commit

Permalink
Minor fixes to 2 modules (GevondenCC_NL & Abandon_lookup) (FreePBX#294)
Browse files Browse the repository at this point in the history
* Updated source-GevondenCC_NL.module

- Changed parameter in debugprint to prevent error
- Added additional check on result

* Updated source-Abandon_lookup.module

- Added check for parameter Use_CID
  • Loading branch information
oppergod authored and tm1000 committed Mar 30, 2017
1 parent 3493cd1 commit d6d6800
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sources/source-Abandon_lookup.module
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Abandon_lookup extends superfecta_base {
if ($run_param['Artificial_CNAM'] == NULL) {
$run_param['Artificial_CNAM'] = $this->source_param['Artificial_CNAM']['default'];
}
if ($run_param['Use_CID'] == 'on') {
if (isset($run_param['Use_CID']) && $run_param['Use_CID'] == 'on') {
$run_param['Artificial_CNAM'] = $thenumber;
}

Expand Down
4 changes: 2 additions & 2 deletions sources/source-GevondenCC_NL.module
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class GevondenCC_NL extends superfecta_base {
$caller_id = null;
$name = "";

$this->DebugPrint("Searching gevonden.cc - {$this->thenumber} ... ");
$this->DebugPrint("Searching gevonden.cc - {$thenumber} ... ");

// Test for NL
$loc_number = $thenumber;
Expand Down Expand Up @@ -57,7 +57,7 @@ class GevondenCC_NL extends superfecta_base {
}

// If we found a match, return it
if (strlen($name) > 1)
if (is_string($name) && strlen($name) > 1)
{
$caller_id = $name;
} else {
Expand Down

0 comments on commit d6d6800

Please sign in to comment.