From 86e79627ec316f186e621997d7dc3a744afb45a6 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Sun, 14 Nov 2004 17:39:12 +0000 Subject: [PATCH] backport --- include/notifs.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/notifs.inc.php b/include/notifs.inc.php index 547b47d..8db049a 100644 --- a/include/notifs.inc.php +++ b/include/notifs.inc.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: notifs.inc.php,v 1.17 2004-11-13 08:48:26 x2000habouzit Exp $ + $Id: notifs.inc.php,v 1.18 2004-11-14 17:39:12 x2000habouzit Exp $ ***************************************************************************/ define("WATCH_FICHE", 1); @@ -52,7 +52,7 @@ function getNbNotifs() { if(!isset($_SESSION['uid'])) return 0; $uid = $_SESSION['uid']; - $watchlast = $_SESSION['watch_last']; + $watchlast = isset($_SESSION['watch_last']) ? $_SESSION['watch_last'] : 0; $res = $globals->db->query(" ( -- 2.1.4