$params['location'] = $contact['homeCity'] . (!empty($contact['homeProvince']) ? ', ' . $contact['homeProvince'] : '') . (!empty($contact['homeCountry']) ? ', ' . $contact['homeCountry'] : '');
}
+ // TODO: Try some other way?
+
parent::__construct($params);
}
$return = array();
foreach ($time_categories as $category) {
$drv = TimeObjects_Driver::factory($category);
- $new = $drv->listTimeObjects($start, $end);
+
+ try {
+ $new = $drv->listTimeObjects($start, $end);
+ } catch (TimeObjects_Exception $e) {
+ //@TODO: Log the error, but return an empty array.
+ $new = array();
+ }
$return = array_merge($return, $new);
}