Fix admin/logger when the user has no entry in the aliases table.
[platal.git] / classes / xnet.php
index 08e6163..be74a32 100644 (file)
@@ -47,7 +47,12 @@ class Xnet extends Platal
 
     public function force_login(PlPage &$page)
     {
-        http_redirect(S::v('loginX'));
+        $redirect = S::v('loginX');
+        if (!$redirect) {
+            $page->trigError('Impossible de s\'authentifier. Problème de configuration de plat/al.');
+            return;
+        }
+        http_redirect($redirect);
     }
 }