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 = [
|
$options_defauts = [
|
||||||
'mime' => 'tout_mime',
|
'mime' => 'tout_mime',
|
||||||
'dimension_max' => [
|
'dimension_max' => [
|
||||||
|
@ -20,8 +20,10 @@ function inc_bigform_verifier_dist($options = [], &$erreurs){
|
||||||
|
|
||||||
$er = [];
|
$er = [];
|
||||||
$verifier = charger_fonction('verifier', 'inc/');
|
$verifier = charger_fonction('verifier', 'inc/');
|
||||||
$verifier($_FILES['fichiers'], 'fichiers',$options, $er);
|
if (!empty($_FILES['fichiers'])) {
|
||||||
if (count($er)) {
|
$verifier($_FILES['fichiers'], 'fichiers',$options, $er);
|
||||||
$erreurs['fichiers'] = implode('<br>', $er);
|
if (count($er)) {
|
||||||
|
$erreurs['fichiers'] = implode('<br>', $er);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue