Changeset 75991 in spip-zone


Ignore:
Timestamp:
Sep 20, 2013, 9:39:46 PM (7 years ago)
Author:
teddy.spip@…
Message:

Eviter un warning PHP

Location:
_plugins_/polyhierarchie/branches
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/polyhierarchie/branches/v1.0/polyhier_pipeline.php

    r52794 r75991  
    5959        $form = $flux['args']['form'];
    6060        if (
    61                 ($objet = $flux['data']['_polyhier'] AND in_array($objet,array('article','rubrique')))
     61                (array_key_exists('_polyhier', $flux['data']) AND $objet = $flux['data']['_polyhier'] AND in_array($objet,array('article','rubrique')))
    6262                OR ($objet = substr($form,7) AND in_array($form,array('editer_article','editer_rubrique')))
    6363                ){
  • _plugins_/polyhierarchie/branches/v2.0/polyhier_pipeline.php

    r53854 r75991  
    5959        $form = $flux['args']['form'];
    6060        if (
    61                 ($objet = $flux['data']['_polyhier'] AND in_array($objet,array('article','rubrique')))
     61                (array_key_exists('_polyhier', $flux['data']) AND $objet = $flux['data']['_polyhier'] AND in_array($objet,array('article','rubrique')))
    6262                OR ($objet = substr($form,7) AND in_array($form,array('editer_article','editer_rubrique')))
    6363                ){
Note: See TracChangeset for help on using the changeset viewer.