Fix phpcs
This commit is contained in:
parent
15bbba3f52
commit
c9a73cc380
@ -15,7 +15,6 @@
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
@ -97,11 +97,11 @@ if ($action == 'confirm_rejet')
|
||||
if ($lipre->fetch($id) == 0)
|
||||
|
||||
{
|
||||
$rej = new RejetPrelevement($db, $user,$type);
|
||||
$rej = new RejetPrelevement($db, $user, $type);
|
||||
|
||||
$rej->create($user, $id, GETPOST('motif', 'alpha'), $daterej, $lipre->bon_rowid, GETPOST('facturer', 'int'));
|
||||
|
||||
header("Location: line.php?id=".$id.'&type='.$type);
|
||||
header("Location: line.php?id=".urlencode($id).'&type='.urlencode($type));
|
||||
exit;
|
||||
}
|
||||
}
|
||||
@ -112,7 +112,7 @@ if ($action == 'confirm_rejet')
|
||||
}
|
||||
else
|
||||
{
|
||||
header("Location: line.php?id=".$id.'&type='.$type);
|
||||
header("Location: line.php?id=".urlencode($id).'&type='.urlencode($type));
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
@ -2264,7 +2264,6 @@ class ExpenseReport extends CommonObject
|
||||
$langs->load("trips");
|
||||
|
||||
if (!dol_strlen($modele)) {
|
||||
|
||||
if ($this->modelpdf) {
|
||||
$modele = $this->modelpdf;
|
||||
} elseif (!empty($conf->global->EXPENSEREPORT_ADDON_PDF)) {
|
||||
@ -2278,7 +2277,6 @@ class ExpenseReport extends CommonObject
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user