Ignore:
Timestamp:
Mar 4, 2013, 9:38:26 AM (7 years ago)
Author:
rastapopoulos@…
Message:

Report de [70375]
warnings de clés de tableau qui n'existe pas forcément

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/breves/breves_pipelines.php

    r69328 r70376  
    273273 */
    274274function breves_boite_infos($flux){
    275         if ($flux['args']['type']=='rubrique'
    276           AND $id_rubrique = $flux['args']['id']){
     275        if (
     276                isset($flux['args']['type']) and $flux['args']['type'] == 'rubrique'
     277                and isset($flux['args']['id']) and  $id_rubrique = $flux['args']['id']
     278        ){
    277279                if ($nb = sql_countsel('spip_breves',"statut='publie' AND id_rubrique=".intval($id_rubrique))){
    278280                        $nb = "<div>". singulier_ou_pluriel($nb, "breves:info_1_breve", "breves:info_nb_breves") . "</div>";
Note: See TracChangeset for help on using the changeset viewer.