```php
if (!isset($r['ADR'])) {
    continue;
}
```
Or you will get a lot of nasty `implode(): Invalid arguments passed at /home/tol/owncloud/calendar/ajax/search-location.php#11` in the log.
And use tabs for indentation instead of spaces.