Changeset 77092 in spip-zone


Ignore:
Timestamp:
Oct 9, 2013, 1:27:00 PM (8 years ago)
Author:
kent1@…
Message:

regrouper les if

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/inscription/trunk/inscription3_fonctions.php

    r77091 r77092  
    121121        $boucle = &$boucles[$idb];
    122122        $id_article = false;
    123         if(defined('_DIR_PLUGIN_PAGES')){
    124                 if($id_article = sql_getfetsel('id_article','spip_articles','page="reglement"')){
    125                         $sous = "sql_get_select('art.id_article','spip_articles as art','page=\'reglement\'')";
    126                         $where = "array('IN', '".$boucle->id_table.".".$boucle->primary."', '('.$sous.')')";
    127                 }
     123        if(defined('_DIR_PLUGIN_PAGES') && ($id_article = sql_getfetsel('id_article','spip_articles','page="reglement"'))){
     124                $sous = "sql_get_select('art.id_article','spip_articles as art','page=\'reglement\'')";
     125                $where = "array('IN', '".$boucle->id_table.".".$boucle->primary."', '('.$sous.')')";
    128126        }
    129127        if(!$id_article){
Note: See TracChangeset for help on using the changeset viewer.