{
// Check that URLs have http:// in front of them.
- if (strtolower(substr($r['url'],0,4)) != 'http') {
+ if (isset($r['url']) && strtolower(substr($r['url'],0,4)) != 'http') {
$r['url'] = 'http://'.$r['url'];
}
'id' => $event['member']['city_id'],
'name' => $event['member']['city']
);
- } elseif (isset($event['locations'])) {
+ } elseif (isset($event['locations']) && isset($event['locations']['city'])) {
$eventCities[$event['locations']['city']['value']] = array(
'id' => $event['locations']['city']['value'],
'name' => $event['locations']['city']['name']