Changeset 94911 in spip-zone for _plugins_/minibando


Ignore:
Timestamp:
Feb 3, 2016, 11:53:24 PM (4 years ago)
Author:
p@…
Message:

Règles de codage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/minibando/trunk/formulaires/administration_fonctions.php

    r84292 r94911  
    44
    55function minibando_definir_rubrique_contexte($contexte) {
    6     if( !isset($contexte['id_rubrique']) && isset($contexte['id_article']) && $contexte['id_article'] ){
    7         $contexte['id_rubrique'] = sql_getfetsel('id_rubrique','spip_articles','id_article='.(int)$contexte['id_article']);
     6    if (!isset($contexte['id_rubrique']) && isset($contexte['id_article']) && $contexte['id_article']){
     7        $contexte['id_rubrique'] = sql_getfetsel(
     8                'id_rubrique',
     9                'spip_articles',
     10                'id_article='.(int)$contexte['id_article']
     11        );
    812    }
    913    return $contexte;
    1014}
    11 
    12 ?>
Note: See TracChangeset for help on using the changeset viewer.