Fix missing token
This commit is contained in:
parent
3fb69f8ec0
commit
eed14ad6e1
@ -2056,7 +2056,7 @@ if ($id) {
|
|||||||
if ($id == 4) {
|
if ($id == 4) {
|
||||||
print '<td class="nowrap center">';
|
print '<td class="nowrap center">';
|
||||||
if ($iserasable) {
|
if ($iserasable) {
|
||||||
print '<a class="reposition" href="'.$url.'action='.$acts[$obj->favorite].'_favorite">'.$actl[$obj->favorite].'</a>';
|
print '<a class="reposition" href="'.$url.'action='.$acts[$obj->favorite].'_favorite&token='.newToken().'">'.$actl[$obj->favorite].'</a>';
|
||||||
} else {
|
} else {
|
||||||
print $langs->trans("AlwaysActive");
|
print $langs->trans("AlwaysActive");
|
||||||
}
|
}
|
||||||
@ -2066,7 +2066,7 @@ if ($id) {
|
|||||||
// Active
|
// Active
|
||||||
print '<td class="nowrap center">';
|
print '<td class="nowrap center">';
|
||||||
if ($canbedisabled) {
|
if ($canbedisabled) {
|
||||||
print '<a class="reposition" href="'.$url.'action='.$acts[$obj->active].'">'.$actl[$obj->active].'</a>';
|
print '<a class="reposition" href="'.$url.'action='.$acts[$obj->active].'&token='.newToken().'">'.$actl[$obj->active].'</a>';
|
||||||
} else {
|
} else {
|
||||||
if (in_array($obj->code, array('AC_OTH', 'AC_OTH_AUTO'))) {
|
if (in_array($obj->code, array('AC_OTH', 'AC_OTH_AUTO'))) {
|
||||||
print $langs->trans("AlwaysActive");
|
print $langs->trans("AlwaysActive");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user