filtrage pour eviter une erreur si une autorisation ne permet pas d'utiliser un champ
This commit is contained in:
parent
bb8283f026
commit
0111fc1aba
1 changed files with 5 additions and 0 deletions
|
@ -62,6 +62,11 @@ function gamuform_recup_tableau_objet(string $objet, bool $all = true):array {
|
|||
if (empty($T)) {
|
||||
$T = [];
|
||||
}
|
||||
// on filtre les entrées vides, qui peuvent arriver si on on des autorisations
|
||||
$T = array_filter($T, function($d){
|
||||
return !empty($d);
|
||||
});
|
||||
|
||||
if (!$all) {
|
||||
$T = array_filter($T, function($d){
|
||||
return !empty($d['saisie']);
|
||||
|
|
Loading…
Add table
Reference in a new issue