FIX Broken Permissions check, $object is null.
This code was probably copy&paste'd from `htdocs/compta/prelevement/card.php` where the `$object` variable exists.
On `htdocs/compta/prelevement/line.php` `$object` is not defined, and `$type` come from the `$type = GETPOST('type', 'aZ09');` which ends up being overwritten with null.
This commit is contained in:
parent
23feae3ee2
commit
05e850dbfc
@ -61,7 +61,7 @@ if ($sortfield == "") {
|
|||||||
$sortfield = "pl.fk_soc";
|
$sortfield = "pl.fk_soc";
|
||||||
}
|
}
|
||||||
|
|
||||||
$type = $object->type;
|
|
||||||
if ($type == 'bank-transfer') {
|
if ($type == 'bank-transfer') {
|
||||||
$result = restrictedArea($user, 'paymentbybanktransfer', '', '', '');
|
$result = restrictedArea($user, 'paymentbybanktransfer', '', '', '');
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user