valeur par defaut
This commit is contained in:
parent
1bf6df1186
commit
d0d8d2d1ad
1 changed files with 6 additions and 4 deletions
|
@ -4,7 +4,7 @@ if (!defined('_ECRIRE_INC_VERSION')){
|
|||
}
|
||||
|
||||
|
||||
function inc_bigform_verifier_dist($options = [], &$erreurs){
|
||||
function inc_bigform_verifier_dist($options = [], &$erreurs = [] ){
|
||||
$options_defauts = [
|
||||
'mime' => 'tout_mime',
|
||||
'dimension_max' => [
|
||||
|
@ -20,8 +20,10 @@ function inc_bigform_verifier_dist($options = [], &$erreurs){
|
|||
|
||||
$er = [];
|
||||
$verifier = charger_fonction('verifier', 'inc/');
|
||||
$verifier($_FILES['fichiers'], 'fichiers',$options, $er);
|
||||
if (count($er)) {
|
||||
$erreurs['fichiers'] = implode('<br>', $er);
|
||||
if (!empty($_FILES['fichiers'])) {
|
||||
$verifier($_FILES['fichiers'], 'fichiers',$options, $er);
|
||||
if (count($er)) {
|
||||
$erreurs['fichiers'] = implode('<br>', $er);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue