Browse Source

fix : 2 undefined

(détectés en utilisant le plugin duplicator)
master
RealET 2 months ago
parent
commit
c18b5f0d53
  1. 4
      podcast_pipelines.php

4
podcast_pipelines.php

@ -31,7 +31,7 @@ function podcast_editer_contenu_objet($flux){
* Insertion dans le pipeline pre_edition
*/
function podcast_pre_edition($flux){
if(($flux['args']['type'] == 'document') && ($flux['args']['action'] == 'modifier') && _request('podcast')){
if(isset($flux['args']['type']) && ($flux['args']['type'] == 'document') && ($flux['args']['action'] == 'modifier') && _request('podcast')){
$flux['data']['podcast'] = _request('podcast');
$flux['data']['explicit'] = _request('explicit');
}
@ -54,7 +54,7 @@ function podcast_post_edition($flux){
/**
* On n'intervient que sur les actions d'ajout de document
*/
if(in_array($flux['args']['operation'], array('ajouter_document'))){
if (isset($flux['args']['operation']) && in_array($flux['args']['operation'], array('ajouter_document'))){
$id_document = $flux['args']['id_objet'];
$infos_doc = sql_fetsel('fichier,mode,distant','spip_documents','id_document='.intval($id_document));

Loading…
Cancel
Save