Fixed detail-search according to googles latest changes

This commit is contained in:
Zn4rK 2014-07-21 12:25:23 +02:00
parent c3fe6e8e59
commit c194f5b97f

View file

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