Changeset 92966 in spip-zone


Ignore:
Timestamp:
Nov 16, 2015, 2:07:38 PM (4 years ago)
Author:
teddy.spip@…
Message:

On évite des warnings PHP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/imprimir_documento/trunk/baliza_imprimir_documento.php

    r92965 r92966  
    3737function balise_IMPRIMIR_DOCUMENTO($p)
    3838{
    39     if ($GLOBALS['contexte']['id_breve'] == '') {
     39    if (isset($GLOBALS['contexte']['id_article'])) {
    4040        $arg = "'page=imprimir_articulo&id_article='.".champ_sql('id_article', $p);
    41     } else {
     41    } elseif (isset($GLOBALS['contexte']['id_breve'])) {
    4242        $arg = "'page=imprimir_breve&id_breve='.".champ_sql('id_breve', $p);
    4343    }
Note: See TracChangeset for help on using the changeset viewer.