Merge pull request #9 from Zn4rK/master

Fixed detail-search according to googles latest changes.
This commit is contained in:
Josh Sherman 2014-07-23 22:56:21 -04:00
commit e34e40b43e

View file

@ -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']))