opti
This commit is contained in:
parent
0e62edfd42
commit
c5dc20b9dc
@ -180,18 +180,17 @@ if (strlen($idvote)) {
|
|||||||
// Cookie duration by default
|
// Cookie duration by default
|
||||||
$timeleftbeforestartofevent = time()+86400*30;
|
$timeleftbeforestartofevent = time()+86400*30;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Process to vote
|
// Process to vote
|
||||||
$res = setcookie('VOTE_SUGGESTED_EVENTS_'.$hashedvote, 1, 0);
|
|
||||||
if ($res) {
|
if ($res) {
|
||||||
$conforbooth->num_vote++;
|
$conforbooth->num_vote++;
|
||||||
$resupdate = $conforbooth->update($user);
|
$resupdate = $conforbooth->update($user);
|
||||||
if ($resupdate) {
|
if ($resupdate) {
|
||||||
$votestatus = 'ok';
|
$votestatus = 'ok';
|
||||||
|
$res = setcookie('VOTE_SUGGESTED_EVENTS_'.$hashedvote, 1, 0);
|
||||||
} else {
|
} else {
|
||||||
//Error during update
|
//Error during update
|
||||||
$votestatus = 'err';
|
$votestatus = 'err';
|
||||||
$res = setcookie('VOTE_SUGGESTED_EVENTS_'.$hashedvote, 0, 0);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$votestatus = 'err';
|
$votestatus = 'err';
|
||||||
|
|||||||
@ -2467,7 +2467,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
|||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Supplier code
|
// Su+pplier code
|
||||||
if (((!empty($conf->fournisseur->enabled) && !empty($user->rights->fournisseur->lire) && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) || (!empty($conf->supplier_order->enabled) && !empty($user->rights->supplier_order->lire)) || (!empty($conf->supplier_invoice->enabled) && !empty($user->rights->supplier_invoice->lire))) && $object->fournisseur) {
|
if (((!empty($conf->fournisseur->enabled) && !empty($user->rights->fournisseur->lire) && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) || (!empty($conf->supplier_order->enabled) && !empty($user->rights->supplier_order->lire)) || (!empty($conf->supplier_invoice->enabled) && !empty($user->rights->supplier_invoice->lire))) && $object->fournisseur) {
|
||||||
print '<tr><td>';
|
print '<tr><td>';
|
||||||
print $langs->trans('SupplierCode').'</td><td>';
|
print $langs->trans('SupplierCode').'</td><td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user