From 47134bca509bc6acaee3535fb991da989a7f3bd6 Mon Sep 17 00:00:00 2001 From: cdegier Date: Thu, 26 Jan 2017 14:01:24 -0600 Subject: [PATCH] FREEPBX-13449 Fix GevondenCC --- sources/source-GevondenCC_NL.module | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sources/source-GevondenCC_NL.module b/sources/source-GevondenCC_NL.module index 74ec6421..4937fa09 100644 --- a/sources/source-GevondenCC_NL.module +++ b/sources/source-GevondenCC_NL.module @@ -1,6 +1,6 @@ DebugPrint("Searching gevonden.cc - {$this->thenumber} ... "); + $this->DebugPrint("Searching gevonden.cc - $thenumber ... "); // Test for NL $loc_number = $thenumber; @@ -45,10 +45,12 @@ class GevondenCC_NL extends superfecta_base { $expr = '=]*>(.*)[0-9]{5,}=siU'; preg_match_all($expr, $result, $name); - if (count($name[1]) > 0) + if (count($name) > 1 && count($name[1]) > 0) { $name = trim($name[1][0]); $name = strip_tags($name); + } else { + $name = ""; } } else