diff --git a/breves_pipelines.php b/breves_pipelines.php index e354e85..561b524 100644 --- a/breves_pipelines.php +++ b/breves_pipelines.php @@ -95,12 +95,19 @@ function breves_accueil_informations($texte){ $cpt = array(); $cpt2 = array(); + $where = false; + if ($GLOBALS['visiteur_session']['statut']=='0minirezo'){ + $where = sql_allfetsel('id_objet','spip_auteurs_liens',"objet='rubrique' AND id_auteur=".intval($GLOBALS['visiteur_session']['id_auteur'])); + if ($where){ + $where = sql_in('id_rubrique',array_map('reset',$where)); + } + } $defaut = $where ? '0/' : ''; while($row = sql_fetch($q)) { $cpt[$row['statut']] = $row['cnt']; $cpt2[$row['statut']] = $defaut; } - + if ($cpt) { if ($where) { $q = sql_select("COUNT(*) AS cnt, statut", 'spip_breves', $where, "statut"); @@ -109,11 +116,11 @@ function breves_accueil_informations($texte){ $cpt2[$r] = intval($row['cnt']) . '/'; } } - $texte .= "
"; - $texte .= afficher_plus_info(generer_url_ecrire("breves","")).""._T('breves:info_breves_02').""; - $texte .= "