Fix phpcs
This commit is contained in:
parent
1e6273b92d
commit
c30491284f
@ -292,7 +292,6 @@ if ($action == 'addtime' && $user->rights->projet->lire && GETPOST('formfilterac
|
|||||||
|
|
||||||
if (count($timespent_duration) > 0)
|
if (count($timespent_duration) > 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
foreach ($timespent_duration as $key => $val)
|
foreach ($timespent_duration as $key => $val)
|
||||||
{
|
{
|
||||||
$object->fetch($key);
|
$object->fetch($key);
|
||||||
@ -304,9 +303,9 @@ if ($action == 'addtime' && $user->rights->projet->lire && GETPOST('formfilterac
|
|||||||
$object->timespent_duration = $val;
|
$object->timespent_duration = $val;
|
||||||
$object->timespent_fk_user = $usertoprocess->id;
|
$object->timespent_fk_user = $usertoprocess->id;
|
||||||
$object->timespent_note = GETPOST($key.'note');
|
$object->timespent_note = GETPOST($key.'note');
|
||||||
if (GETPOST($key."hour") != '' && GETPOST($key."hour") >= 0) // If hour was entered
|
if (GETPOST($key."hour", 'int') != '' && GETPOST($key."hour", 'int') >= 0) // If hour was entered
|
||||||
{
|
{
|
||||||
$object->timespent_datehour = dol_mktime(GETPOST($key."hour"), GETPOST($key."min"), 0, $monthofday, $dayofday, $yearofday);
|
$object->timespent_datehour = dol_mktime(GETPOST($key."hour", 'int'), GETPOST($key."min", 'int'), 0, $monthofday, $dayofday, $yearofday);
|
||||||
$object->timespent_withhour = 1;
|
$object->timespent_withhour = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user