Should this function be returning false?
private function updateEvent($ev, $data){
$data["start"] = array(
"dateTime" => $this->to_gDate($data["start_date"]),
"timeZone" => "Australia/Melbourne" );
$data["end"] = array(
"dateTime" => $this->to_gDate($data["end_date"]),
"timeZone" => "Australia/Melbourne" );
$ev["summary"] = $data["text"];
try{
$ev = $this->cal->events->update($this->cal_name, $ev["id"], new Google_Event($ev));
} catch(Exception $error){
return false;
}
// process response
if ($ev)
return $ev["id"];
return false;
}