From: Florent Bruneau Date: Wed, 14 Jan 2009 22:05:48 +0000 (+0100) Subject: Log disconnection only if the user is logged. X-Git-Tag: xorg/0.10.1~49^2~24 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=130b87084a6ad38526b42465880635194688d83e;p=platal.git Log disconnection only if the user is logged. Signed-off-by: Florent Bruneau --- diff --git a/modules/platal.php b/modules/platal.php index cf73869..c9b4287 100644 --- a/modules/platal.php +++ b/modules/platal.php @@ -452,8 +452,10 @@ Adresse de secours : " . Post::v('email') : "")); Cookie::kill('ORGdomain'); } - $ref = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''; - S::logger()->log('deconnexion',$ref); + if (S::logged()) { + $ref = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''; + S::logger()->log('deconnexion', $ref); + } Platal::session()->destroy(); if (Get::has('redirect')) {