Skip to content

Commit

Permalink
check the index as well
Browse files Browse the repository at this point in the history
  • Loading branch information
tm1000 committed Apr 22, 2016
1 parent 2e591e2 commit 8220f21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<rawname>superfecta</rawname>
<repo>extended</repo>
<name>CID Superfecta</name>
<version>13.0.3.11</version>
<version>13.0.3.12</version>
<type>setup</type>
<category>Admin</category>
<publisher>Sangoma Technologies Corporation</publisher>
Expand All @@ -12,6 +12,7 @@
Provides simultaneous use of, and complete control over multiple caller id data sources.
</description>
<changelog>
*13.0.3.12* Wild guess on fixing this issue for FREEPBX-11857
*13.0.3.11* FREEPBX-11857 FREEPBX-12003
*13.0.3.10* FREEPBX-11857 Add info field type
*13.0.3.9* Correct if statement
Expand Down
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 = isset($vals[$index["NAME"][0]]["value"]) ? $vals[$index["NAME"][0]]["value"]:null;
$caller_id = isset($index["NAME"][0]) && 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 8220f21

Please sign in to comment.