correction de count() pas sur des arrays + un var_dump de debog qui trainait
This commit is contained in:
parent
1440d1ed1e
commit
17b1fec421
1 changed files with 3 additions and 3 deletions
|
@ -127,7 +127,7 @@ function formulaires_gamumail_verifier_dist($slug, $destinataires = 0, $Tclient
|
||||||
if (_request('docs_spip') != '') {
|
if (_request('docs_spip') != '') {
|
||||||
$docs_spip = explode(',', _request('docs_spip'));
|
$docs_spip = explode(',', _request('docs_spip'));
|
||||||
}
|
}
|
||||||
if (count($docs_spip)) {
|
if (is_array($docs_spip) and count($docs_spip)) {
|
||||||
$docs_spip_erreurs = [];
|
$docs_spip_erreurs = [];
|
||||||
foreach($docs_spip as $id_doc) {
|
foreach($docs_spip as $id_doc) {
|
||||||
if (intval($id_doc) != $id_doc
|
if (intval($id_doc) != $id_doc
|
||||||
|
@ -141,8 +141,9 @@ function formulaires_gamumail_verifier_dist($slug, $destinataires = 0, $Tclient
|
||||||
}
|
}
|
||||||
|
|
||||||
// les fichiers envoyés par un éventuel inclure gamumail/#SLUG_fichiers.html sont ils OK ?
|
// les fichiers envoyés par un éventuel inclure gamumail/#SLUG_fichiers.html sont ils OK ?
|
||||||
|
$Tid_doc = [];
|
||||||
$Tid_doc = _request('Tid_doc');
|
$Tid_doc = _request('Tid_doc');
|
||||||
if (count($Tid_doc)) {
|
if (is_array($Tid_doc) and count($Tid_doc)) {
|
||||||
$Tid_doc_erreurs = [];
|
$Tid_doc_erreurs = [];
|
||||||
foreach($Tid_doc as $id_doc) {
|
foreach($Tid_doc as $id_doc) {
|
||||||
if (intval($id_doc) != $id_doc
|
if (intval($id_doc) != $id_doc
|
||||||
|
@ -279,7 +280,6 @@ function formulaires_gamumail_traiter_dist($slug, $destinataires = 0, $Tclient =
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var_dump($pieces_jointes);die;
|
|
||||||
|
|
||||||
$html_header = '';
|
$html_header = '';
|
||||||
if (find_in_path('gamumail/'.$slug .'_html_header.html')) {
|
if (find_in_path('gamumail/'.$slug .'_html_header.html')) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue