From cec33b47530b331b834853272a41a39e0a3a4f8f Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Sun, 14 Nov 2004 15:14:54 +0000 Subject: [PATCH] well seen yann ! --- plugins/insert.getNbNotifs.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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(); + } } ?> -- 2.1.4