projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replaced boolval calls to cast to bool so that the app works with PHP 5.2.
[timetracker.git]
/
time_edit.php
diff --git
a/time_edit.php
b/time_edit.php
index
b509fcf
..
d486d65
100644
(file)
--- a/
time_edit.php
+++ b/
time_edit.php
@@
-95,7
+95,7
@@
if ($request->isPost()) {
$cl_billable = $time_rec['billable'];
// Add an info message to the form if we are editing an uncompleted record.
$cl_billable = $time_rec['billable'];
// Add an info message to the form if we are editing an uncompleted record.
- if (
($cl_start == $cl_finish) && ($cl_duration == '0:00')
) {
+ if (
strlen($cl_start) > 0 && $cl_start == $cl_finish && $cl_duration == '0:00'
) {
$cl_finish = '';
$cl_duration = '';
$msg->add($i18n->getKey('form.time_edit.uncompleted'));
$cl_finish = '';
$cl_duration = '';
$msg->add($i18n->getKey('form.time_edit.uncompleted'));