Changeset 99158 in spip-zone for _plugins_/oembed/oembed_pipelines.php


Ignore:
Timestamp:
Aug 14, 2016, 9:37:43 AM (3 years ago)
Author:
marcimat@…
Message:

Notice PHP en moins lors de l'appel à copie_locale()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/oembed/oembed_pipelines.php

    r98862 r99158  
    151151 */
    152152function oembed_post_edition($flux) {
    153         if ($flux['args']['action']=='ajouter_document' and !empty($flux['data']['oembed'])) {
     153        if (
     154                isset($flux['args']['action'])
     155                and $flux['args']['action'] == 'ajouter_document'
     156                and !empty($flux['data']['oembed'])
     157        ) {
    154158                $id_document = $flux['args']['id_objet'];
    155159                if ($data = oembed_recuperer_data($flux['data']['oembed'])) {
Note: See TracChangeset for help on using the changeset viewer.