Merge pull request #9 from Zn4rK/master
Fixed detail-search according to googles latest changes.
This commit is contained in:
commit
e34e40b43e
1 changed files with 2 additions and 2 deletions
|
@ -184,9 +184,9 @@ class GooglePlaces
|
|||
break;
|
||||
|
||||
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']))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue