This commit is contained in:
Laurent Destailleur 2020-05-28 20:04:30 +02:00
parent 1992b633ba
commit 7fbacf4352

View File

@ -117,8 +117,8 @@ if (empty($reshook))
$object->description = GETPOST('nouveauxcommentaires', 'restricthtml');
$object->mail_admin = GETPOST('nouvelleadresse', 'alpha');
$object->date_fin = $expiredate;
$object->allow_comments = GETPOST('cancomment', 'alpha') == 'on' ? true : false;
$object->allow_spy = GETPOST('canseeothersvote', 'alpha') == 'on' ? true : false;
$object->allow_comments = GETPOST('cancomment', 'alpha') == 'on' ? 1 : 0;
$object->allow_spy = GETPOST('canseeothersvote', 'alpha') == 'on' ? 1 : 0;
$object->mailsonde = GETPOST('mailsonde', 'alpha') == 'on' ? true : false;
$res = $object->update($user);