well seen yann !
authorx2000habouzit <x2000habouzit>
Sun, 14 Nov 2004 15:14:54 +0000 (15:14 +0000)
committerx2000habouzit <x2000habouzit>
Sun, 14 Nov 2004 15:14:54 +0000 (15:14 +0000)
plugins/insert.getNbNotifs.php

index 3b936f3..3400954 100644 (file)
  *  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();
+    }
 }
 ?>