if (!$existing_timesheet || ($cl_timesheet_id == $existing_timesheet['id'])) {
// Update timesheet information.
if (ttTimesheetHelper::update(array(
'id' => $cl_timesheet_id,
'name' => $cl_name,
if (!$existing_timesheet || ($cl_timesheet_id == $existing_timesheet['id'])) {
// Update timesheet information.
if (ttTimesheetHelper::update(array(
'id' => $cl_timesheet_id,
'name' => $cl_name,