Fix and clean code
[platal.git] / modules / xnet.php
index 09f58e9..95a9be6 100644 (file)
@@ -89,9 +89,7 @@ class XnetModule extends PLModule
 
     function handler_exit(&$page)
     {
-        if (S::has('suid')) {
-            killSuid();
-        }
+        XnetSession::killSuid();
         XnetSession::destroy();
         $page->changeTpl('xnet/deconnexion.tpl');
     }