From c8de250c86bde4ad856d720dd2d66960f5732634 Mon Sep 17 00:00:00 2001 From: James Finstrom Date: Thu, 21 Apr 2016 10:40:04 -0700 Subject: [PATCH] FREEPBX-11857 Fix whoops in google places source --- sources/source-GooglePlaces.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/source-GooglePlaces.module b/sources/source-GooglePlaces.module index de2a95b8..51600498 100644 --- a/sources/source-GooglePlaces.module +++ b/sources/source-GooglePlaces.module @@ -82,7 +82,7 @@ class GooglePlaces extends superfecta_base { $p = xml_parser_create(); xml_parse_into_struct($p, $xml, $vals, $index); xml_parser_free($p); - $caller_id = $vals[$index["NAME"][0]]["value"]; + $caller_id = isset($vals[$index["NAME"][0]]["value"]) ? $vals[$index["NAME"][0]]["value"]:null; if (strpos($xml,"DENIED") !== false) { $this->DebugPrint("Invalid API Key!"); }