From f2cc699b0b0a9c364c7bc2943fc85f4587b85e30 Mon Sep 17 00:00:00 2001 From: "marcimat@rezo.net" <> Date: Tue, 5 Jun 2012 08:48:13 +0000 Subject: [PATCH] Correction de notices PHP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Du à un oubli de changement de meta ici ! --- stats_autoriser.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/stats_autoriser.php b/stats_autoriser.php index 7b5addd..0528501 100644 --- a/stats_autoriser.php +++ b/stats_autoriser.php @@ -31,9 +31,10 @@ function autoriser_statsrepartition_onglet_dist($faire, $type, $id, $qui, $opt) } function autoriser_statslang_onglet_dist($faire, $type, $id, $qui, $opt) { - return ($GLOBALS['meta']['multi_articles'] == 'oui' - OR $GLOBALS['meta']['multi_rubriques'] == 'oui') - AND autoriser('voirstats', $type, $id, $qui, $opt); + $objets = explode(',', $GLOBALS['meta']['multi_objets']); + return (in_array('spip_articles', $objets) + OR in_array('spip_rubriques', $objets)) + AND autoriser('voirstats', $type, $id, $qui, $opt); } function autoriser_statsreferers_onglet_dist($faire, $type, $id, $qui, $opt) {