From d6d6800aefe71098adcc79e3b352aff2b3d96d59 Mon Sep 17 00:00:00 2001 From: oppergod Date: Thu, 30 Mar 2017 21:22:04 +0200 Subject: [PATCH] Minor fixes to 2 modules (GevondenCC_NL & Abandon_lookup) (#294) * 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 --- sources/source-Abandon_lookup.module | 2 +- sources/source-GevondenCC_NL.module | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/source-Abandon_lookup.module b/sources/source-Abandon_lookup.module index bdc90ce7..09667be1 100644 --- a/sources/source-Abandon_lookup.module +++ b/sources/source-Abandon_lookup.module @@ -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; } diff --git a/sources/source-GevondenCC_NL.module b/sources/source-GevondenCC_NL.module index 74ec6421..82ee4c5d 100644 --- a/sources/source-GevondenCC_NL.module +++ b/sources/source-GevondenCC_NL.module @@ -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; @@ -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 {