Fix phpcs

This commit is contained in:
Laurent Destailleur 2021-04-27 17:43:12 +02:00
parent 7db74c81be
commit b1d8ca0701
3 changed files with 45 additions and 49 deletions

View File

@ -196,7 +196,6 @@ if ($action == 'create') {
if ($id > 0 && !preg_match('/^add/i', $action)) { if ($id > 0 && !preg_match('/^add/i', $action)) {
if ($action == 'edit') { if ($action == 'edit') {
print '<form name="edit" method="POST" action="'.$_SERVER["PHP_SELF"].'" enctype="multipart/form-data">'; print '<form name="edit" method="POST" action="'.$_SERVER["PHP_SELF"].'" enctype="multipart/form-data">';
print '<input type="hidden" name="token" value="'.newToken().'">'; print '<input type="hidden" name="token" value="'.newToken().'">';

View File

@ -128,15 +128,12 @@ if ($action == 'confirm_validate' && $confirm == 'yes' && $user->rights->facture
$sql .= ' AND f.entity IN ('.getEntity('invoice').')'; $sql .= ' AND f.entity IN ('.getEntity('invoice').')';
$sql .= ' AND pf.fk_paiement = '.$object->id; $sql .= ' AND pf.fk_paiement = '.$object->id;
$resql = $db->query($sql); $resql = $db->query($sql);
if ($resql) if ($resql) {
{
$i = 0; $i = 0;
$num = $db->num_rows($resql); $num = $db->num_rows($resql);
if ($num > 0) if ($num > 0) {
{ while ($i < $num) {
while ($i < $num)
{
$objp = $db->fetch_object($resql); $objp = $db->fetch_object($resql);
$invoice = new Facture($db); $invoice = new Facture($db);