Update viewcat.php

This commit is contained in:
Laurent Destailleur 2020-11-04 18:38:45 +01:00 committed by GitHub
parent 1653e17181
commit f4829e7a16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -279,12 +279,12 @@ print "<div class='tabsAction'>\n";
if ($user->rights->categorie->creer)
{
$socid = ($object->socid ? "&socid=".$object->socid : "");
print "<a class='butAction' href='edit.php?id=".$object->id.$socid."&type=".$type."'>".$langs->trans("Modify")."</a>";
print '<a class="butAction" href="edit.php?id='.$object->id.$socid.'&type='.$type.'">'.$langs->trans("Modify").'</a>';
}
if ($user->rights->categorie->supprimer)
{
print "<a class='butActionDelete' href='".$_SERVER["PHP_SELF"]."?action=delete&token=".newToken()."&id=".$object->id."&type=".$type."'>".$langs->trans("Delete")."</a>";
print '<a class="butActionDelete" href="'.$_SERVER["PHP_SELF"].'?action=delete&token='.newToken().'&id='.$object->id.'&type='.$type.'">'.$langs->trans("Delete").'</a>';
}
print "</div>";