Skip to content

Commit

Permalink
FREEPBX-11857 Fix whoops in google places source
Browse files Browse the repository at this point in the history
  • Loading branch information
jfinstrom authored and tm1000 committed Apr 21, 2016
1 parent 36116ec commit c8de250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/source-GooglePlaces.module
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
}
Expand Down

0 comments on commit c8de250

Please sign in to comment.