mirror of
https://github.com/joomla/joomla-cms.git
synced 2024-06-24 22:39:31 +00:00
Merge pull request #6493 from bembelimen/patch-4
Throw errors from google while generation google maps coordinates
This commit is contained in:
commit
1387a63899
|
@ -687,6 +687,11 @@ class JGoogleEmbedMaps extends JGoogleEmbed
|
|||
|
||||
if ($data['status'] != 'OK')
|
||||
{
|
||||
if (!empty($data['error_message']))
|
||||
{
|
||||
throw new RuntimeException($data['error_message']);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user