Fixed detail-search according to googles latest changes
This commit is contained in:
parent
c3fe6e8e59
commit
c194f5b97f
1 changed files with 2 additions and 2 deletions
|
@ -184,9 +184,9 @@ class GooglePlaces
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'details':
|
case 'details':
|
||||||
if (!isset($parameters['reference']))
|
if(!(isset($parameters['reference']) ^ isset($parameters['placeid'])))
|
||||||
{
|
{
|
||||||
throw new \Exception('You must specify a reference before calling details().');
|
throw new \Exception('You must specify either a placeid or a reference (but not both) before calling details().');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($parameters['rankby']))
|
if (isset($parameters['rankby']))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue