Commit a2b74ef1 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Replace tabs by spaces.

parent 0b170d78
...@@ -143,22 +143,19 @@ else ...@@ -143,22 +143,19 @@ else
// Get the current timesheet creation date // Get the current timesheet creation date
if (intval($obj->timesheet_date)) { if (intval($obj->timesheet_date)) {
$creation_date = new CDate(); $creation_date = new CDate();
$creation_date->setDate($obj->timesheet_date,DATE_FORMAT_UNIXTIME); $creation_date->setDate($obj->timesheet_date,DATE_FORMAT_UNIXTIME);
} } else {
else { $creation_date = new CDate();
$creation_date = new CDate(); $obj->timesheet_date = $creation_date->getTime();
$obj->timesheet_date = $creation_date->getTime();
} }
if (intval($obj->timesheet_worked)) { if (intval($obj->timesheet_worked)) {
$timesheet_worked = $obj->timesheet_worked; $timesheet_worked = $obj->timesheet_worked;
} } else {
else { $obj->timesheet_worked = 0;
$obj->timesheet_worked = 0;
} }
?>
<?php
// function TimesheetEditForm() // function TimesheetEditForm()
echo '<table cellspacing="0" cellpadding="4" border="0" width="100%" class="std">'; echo '<table cellspacing="0" cellpadding="4" border="0" width="100%" class="std">';
echo '<form name="editFrm" action="./index.php?m=timesheet" method="post">'; echo '<form name="editFrm" action="./index.php?m=timesheet" method="post">';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment