Update card.php
This commit is contained in:
parent
10bdb1f787
commit
34beb995f2
@ -111,13 +111,13 @@ if (empty($reshook))
|
|||||||
|
|
||||||
if (!$error)
|
if (!$error)
|
||||||
{
|
{
|
||||||
$object->title = (string) GETPOST('nouveautitre', 'nohtml');
|
$object->title = (string) GETPOST('nouveautitre', 'alphanohtml');
|
||||||
$object->description = (string) GETPOST('nouveauxcommentaires', 'restricthtml');
|
$object->description = (string) GETPOST('nouveauxcommentaires', 'restricthtml');
|
||||||
$object->mail_admin = (string) GETPOST('nouvelleadresse', 'alpha');
|
$object->mail_admin = (string) GETPOST('nouvelleadresse', 'alpha');
|
||||||
$object->date_fin = $expiredate;
|
$object->date_fin = $expiredate;
|
||||||
$object->allow_comments = GETPOST('cancomment', 'alpha') == 'on' ? 1 : 0;
|
$object->allow_comments = GETPOST('cancomment', 'aZ09') == 'on' ? 1 : 0;
|
||||||
$object->allow_spy = GETPOST('canseeothersvote', 'alpha') == 'on' ? 1 : 0;
|
$object->allow_spy = GETPOST('canseeothersvote', 'aZ09') == 'on' ? 1 : 0;
|
||||||
$object->mailsonde = GETPOST('mailsonde', 'alpha') == 'on' ? true : false;
|
$object->mailsonde = GETPOST('mailsonde', 'aZ09') == 'on' ? true : false;
|
||||||
|
|
||||||
$res = $object->update($user);
|
$res = $object->update($user);
|
||||||
if ($res < 0) {
|
if ($res < 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user