Changeset 70375 in spip-zone


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

warnings de clés de tableau qui n'existe pas forcément

Location:
_core_/branches/spip-3.0/plugins/breves
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _core_/branches/spip-3.0/plugins/breves/breves_pipelines.php

    r69326 r70375  
    244244 */
    245245function breves_boite_infos($flux){
    246         if ($flux['args']['type']=='rubrique'
    247           AND $id_rubrique = $flux['args']['id']){
     246        if (
     247                isset($flux['args']['type']) and $flux['args']['type'] == 'rubrique'
     248                and isset($flux['args']['id']) and  $id_rubrique = $flux['args']['id']
     249        ){
    248250                if ($nb = sql_countsel('spip_breves',"statut='publie' AND id_rubrique=".intval($id_rubrique))){
    249251                        $nb = "<div>". singulier_ou_pluriel($nb, "breves:info_1_breve", "breves:info_nb_breves") . "</div>";
  • _core_/branches/spip-3.0/plugins/breves/paquet.xml

    r69229 r70375  
    22        prefix="breves"
    33        categorie="edition"
    4         version="1.3.4"
     4        version="1.3.5"
    55        etat="stable"
    66        compatibilite="[3.0.0;3.0.*]"
Note: See TracChangeset for help on using the changeset viewer.