correction du cas ou aucune image n'est envoyée dans le formulaire
This commit is contained in:
parent
da41ee78a6
commit
5280e58712
1 changed files with 4 additions and 2 deletions
|
@ -36,12 +36,14 @@ function inc_bigform_traiter_dist($id_objet, $objet = 'article', $mode='auto') {
|
|||
/*
|
||||
* On peut utiliser une fonction SPIP
|
||||
* pour supprimer les logos
|
||||
* Si aucune image n'est envoyée, $files est un string
|
||||
* et dans ce cas on n'efface rien !
|
||||
*/
|
||||
if ($mode === 'logoon') {
|
||||
if ($mode === 'logoon' and !is_string($files)) {
|
||||
include_spip('action/editer_logo');
|
||||
logo_supprimer($objet, $id_objet, 'on');
|
||||
}
|
||||
if ($mode === 'logooff') {
|
||||
if ($mode === 'logooff' and !is_string($files)) {
|
||||
include_spip('action/editer_logo');
|
||||
logo_supprimer($objet, $id_objet, 'off');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue