Typecasting

The GETPOST method returns string, let's make the typecast explicit.
This commit is contained in:
Raphaël Doursenaud 2013-11-07 21:05:39 +01:00
parent fa43476890
commit 74f83b235a

View File

@ -167,7 +167,7 @@ if ($action == 'add_action')
$actioncomm->datep = $datep;
$actioncomm->datef = $datef;
$actioncomm->percentage = $percentage;
$actioncomm->duree=((GETPOST('dureehour') * 60) + GETPOST('dureemin')) * 60;
$actioncomm->duree=((float)(GETPOST('dureehour') * 60) + (float)GETPOST('dureemin')) * 60;
$usertodo=new User($db);
if ($_POST["affectedto"] > 0)