Only call is_member function from xnet.
authorStéphane Jacob <sj@m4x.org>
Mon, 11 Jul 2011 06:38:50 +0000 (08:38 +0200)
committerStéphane Jacob <sj@m4x.org>
Mon, 11 Jul 2011 06:38:50 +0000 (08:38 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/xnetevents/xnetevents.inc.php

index c60b938..71ac30c 100644 (file)
@@ -90,7 +90,7 @@ function get_event_detail($eid, $item_id = false, $asso_id = null)
 
     make_event_date($evt);
 
-    $evt['show_participants'] = ($evt['show_participants'] && (is_member() || may_update()));
+    $evt['show_participants'] = ($evt['show_participants'] && $GLOBALS['IS_XNET_SITE'] && (is_member() || may_update()));
 
     return $evt;
 }