From: x2000habouzit Date: Sun, 14 Nov 2004 15:14:54 +0000 (+0000) Subject: well seen yann ! X-Git-Tag: xorg/old~946 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=cec33b47530b331b834853272a41a39e0a3a4f8f;p=platal.git well seen yann ! --- diff --git a/plugins/insert.getNbNotifs.php b/plugins/insert.getNbNotifs.php index 3b936f3..3400954 100644 --- a/plugins/insert.getNbNotifs.php +++ b/plugins/insert.getNbNotifs.php @@ -18,13 +18,15 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: insert.getNbNotifs.php,v 1.1 2004-11-06 22:34:17 x2000habouzit Exp $ + $Id: insert.getNbNotifs.php,v 1.2 2004-11-14 15:14:54 x2000habouzit Exp $ ***************************************************************************/ function smarty_insert_getNbNotifs($params, &$smarty) { - require_once('notifs.inc.php'); - return getNbNotifs(); + if(logged()) { + require_once('notifs.inc.php'); + return getNbNotifs(); + } } ?>