Changeset 79097 in spip-zone


Ignore:
Timestamp:
Dec 3, 2013, 10:13:37 AM (5 years ago)
Author:
kent1@…
Message:

Éviter deux notices PHP

Version 4.12.3

Location:
_plugins_/gis/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/gis/trunk/gis_pipelines.php

    r78955 r79097  
    7878
    7979function gis_post_edition($flux){
    80         if (($flux['args']['operation'] == 'ajouter_document')
     80        if (is_array($flux) && isset($flux['args']['operation']) && ($flux['args']['operation'] == 'ajouter_document')
    8181                AND ($document = sql_fetsel("*","spip_documents","id_document=".intval($flux['args']['id_objet'])))
    8282        ) {
     
    270270                }
    271271        }
    272         if (($flux['args']['operation'] == 'supprimer_document')
     272        if (is_array($flux) && isset($flux['args']['operation']) && ($flux['args']['operation'] == 'supprimer_document')
    273273                AND ($id_document = intval($flux['args']['id_objet'])
    274274                AND ($id_gis = sql_getfetsel("G.id_gis","spip_gis AS G LEFT  JOIN spip_gis_liens AS T ON T.id_gis=G.id_gis ","T.id_objet=" . intval($id_document) . " AND T.objet='document'")))
  • _plugins_/gis/trunk/paquet.xml

    r78978 r79097  
    22        prefix="gis"
    33        categorie="divers"
    4         version="4.12.2"
     4        version="4.12.3"
    55        schema="2.0.4"
    66        etat="stable"
Note: See TracChangeset for help on using the changeset viewer.